Show hide fields on Master pages

681 views
Skip to first unread message

Nav

unread,
Mar 1, 2013, 11:13:31 AM3/1/13
to live...@googlegroups.com
Do not display "Next" button on last page of PDF.

I created the "Next" button in the Master Page, but I do not want the "Next" button to display on the last page of the PDF. Can anyone tell me how to hide the "Next" button on the last page?

AndyP

unread,
Mar 1, 2013, 11:50:43 AM3/1/13
to live...@googlegroups.com
Well - I bodged this by putting a button that did nothing over the top on the page you don't want the master page button to show - take out the name  - fill it with same colour as page and have no border - job done.

I am sure that there is a programmatic way of hiding the button along the lines of this.resolveNode("#pageSet.BUTTON).presence = "hidden";   But where you put this depends on how you open the "offending" page.

Naveed Syed

unread,
Mar 1, 2013, 11:56:43 AM3/1/13
to live...@googlegroups.com
Hmmn... I am wondering if there is any way in which we can refer the "Next button on the Master page" in our subform and retrieve the master page number and accordingly make it visible or hidden.

--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to livecycle+...@googlegroups.com.
To post to this group, send email to live...@googlegroups.com.
Visit this group at http://groups.google.com/group/livecycle?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Madhu Mohan

unread,
Mar 1, 2013, 12:09:06 PM3/1/13
to live...@googlegroups.com
Hi,

you can use the below script

if(xfa.layout.page(this) == xfa.layout.pageCount())
button.presence = "hidden";

Thanks,
Madhu

Naveed Syed

unread,
Mar 1, 2013, 12:37:41 PM3/1/13
to live...@googlegroups.com
Thanks Madhu, I tried your script but it didn't work. I have attached the sample form and I would like to make "My Field" hidden on the click of "Hide My Field" button on 3rd Master page.
Sample.pdf

MANOJ KUMAR DARISI

unread,
Mar 1, 2013, 3:22:38 PM3/1/13
to live...@googlegroups.com
Naveed,

Try the steps below. This might be helpful.
  1. Create another Master Page without Next Field
  2. select the Master Pages, in Page set tab select Print on Front Side Only or Print on Both Sides
  3. select Master Page without Next Field
  4. under pagination tab select placement option as: Last Page (in Page Set)

Regards,
Manoj

Naveed Syed

unread,
Mar 3, 2013, 11:21:33 AM3/3/13
to live...@googlegroups.com
Can it be done by the click of the button as given in my sample.

I see the text field/button in Master pages are not being referenced from the fields within the form. So is there any way of accessing the fields on Master pages?

PFA my sample form for reference.
Sample.pdf
Reply all
Reply to author
Forward
0 new messages