Control Instance of a text field on the master page | Community
Skip to main content
Ajay_Yada
Level 3
September 15, 2016
Solved

Control Instance of a text field on the master page

  • September 15, 2016
  • 1 reply
  • 1454 views

I have a text field on the master page that reads "Please see reverse of the document". I would like this field to be visible on all the pages except the last one. How do I control it from not getting displayed on the last page of the document? Document can be of 3 pages, 5 pages or 10 pages depending on the data that comes from the external java application. Any help is appreciated. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by MorisTM

Look at the custom object "Master page n of m"

Maybe add something like

if (this.parent.index + 1== this.parent.all.length) {
    Please_see_reverse_of_the_document.presence = "visible";
} else {
    Please_see_reverse_of_the_document.presence = "hidden";
}

1 reply

MorisTMAccepted solution
Level 2
September 23, 2016

Look at the custom object "Master page n of m"

Maybe add something like

if (this.parent.index + 1== this.parent.all.length) {
    Please_see_reverse_of_the_document.presence = "visible";
} else {
    Please_see_reverse_of_the_document.presence = "hidden";
}