Expand my Community achievements bar.

SOLVED

Control Instance of a text field on the master page

Avatar

Level 3

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. 

1 Accepted Solution

Avatar

Correct answer by
Level 2

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";
}

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

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";
}