Expand my Community achievements bar.

Catching page change/up down?

Avatar

Former Community Member
Hi All,



Is there any way to track/catch when we move from one page to another in a multipage PDF form? I have a 10 page long form designed in LiveCycle and need to catch the page move event.



Thank you.

Praveen
2 Replies

Avatar

Level 5
Hi Praveen,

You probably looking for following code but you need to use this with some event related to specific object on each page.



xfa.host.currentPage



Ex: var thisPage = xfa.host.currentPage

if (thisPage == 2) {

//satements...

}



Good luck,

SekharN

www.lawson.com

Avatar

Level 5
One more idea... if you declare as subforms, may be you can use the above code in 'enter' event of the subform or page subform to find out which page you are on. But this event triggers only when user selects any accessable field on the subform. But better than writing for single object.



Regards,

SekharN

www.lawson.com