I have the same footer on 3 of my master pages. Depending on data, my form may grow to several pages.
The first 2 master pages display exactly once and the third page grows to no. of pages depending on input data.
Is it possible to script some event so that the textfield on footer displays only on last page?
I have seen examples of xfa.layout.pageCount() and xfa.layout.page(this), and tried the conditions on if last page = currentpage, show/hide the value of text field in the footer.
If there are 10 pages, system should display the text value in the footer only in the 10th page. If the form got only 2 pages, it should display only on second page.
I tired all kinds of scripting with pagecount and page(this). But the script is effecting all the pages irrespective of first/ last page.
I will be greatful if you can put the sample code/ form on how to do this.
Thanks,
Krishna