I have a two page form with the last field's height set to "Expand to Fit," which allows the form to possibly span over 3 or 4 pages. I have the flowed subform that houses the text field set to an Overflow Leader and Trailer. In the Leader, I would like to retrieve the page number of the current instance of that Leader to place in a text box within the Leader. I've tried playing with the xfa.layout.pageNumber() and the textBox.parent.PageNumber (parent being the Leader/subform). Neither are working. The best I can get is the value of "0" on each page.
Any ideas? I KNOW that there are 2 pages no matter what before the expandable part, so if there is some kind of index number for each instance of the Leader, I could use that too. I've been working mostly with the Layout:ready event.
Thanks for any help!
Ryan D. Lunka
Cardinal Solutions Group
rlunka@cardinalsolutions.com