Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Display master page text on specific pages of dynamic form

Avatar

Avatar
Validate 1
Level 2
Remluf_1
Level 2

Likes

0 likes

Total Posts

34 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 2
Remluf_1
Level 2

Likes

0 likes

Total Posts

34 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Remluf_1
Level 2

09-01-2009

I have a text object on my *master page* -- outside a content area. Depending on user input, my form may grow to several pages.



Is it possible to script some event so that the text displays on all but the last page? I have seen examples of xfa.layout.pageCount() and xfa.layout.page(this), but am probably missing an obvious point.



I think that point is how, at run time, to know, for example, this is page 3, there are 5 pages in the form -- the master page text should be displayed. Or, even, this is the last page of a 7 page form -- the master page text should not be displayed.

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

12-01-2009

I am sure this can be done ...I will work on a sample for you. Post your email address and I will send it when complete.

Avatar

Avatar
Validate 1
Level 2
Remluf_1
Level 2

Likes

0 likes

Total Posts

34 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 2
Remluf_1
Level 2

Likes

0 likes

Total Posts

34 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Remluf_1
Level 2

12-01-2009

darrell DOT fulmer AT mosaicinfo DOT org



Thank you, Paul. I thought this seemed like a fairly simple thing, but have spent quite a bit of time and have not hit on the answer.



I have a form which can expand. By convention, the text ' -MORE- ' should appear at the bottom of a page if there is a next page. So, it does not appear if the form only takes a single page, and it does not appear at the bottom of the last page.



My idea was to put ' -MORE- ' as a text object at the bottom of the master page, outside the page's content area, then to control its visibility, depending on the constraints above.

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

12-01-2009

Just sent it

Avatar

Avatar
Validate 1
Level 2
Remluf_1
Level 2

Likes

0 likes

Total Posts

34 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 2
Remluf_1
Level 2

Likes

0 likes

Total Posts

34 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Remluf_1
Level 2

12-01-2009

Thank you. Your script is exactly what was required.