I'm sure this is a simple script, but I'm looking for a way to have my form automatically open on the last page of the document once the form finish loading (doc:ready event).
Can someone please help?
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
You can achive this using the currentPage property:
This JavaScript in the docReady event:
xfa.host.currentPage = xfa.host.numPages - 1;
Note, you subtract 1 from the number of pages to get it into the zero-based system for page numbers. Eg, the first page is 0.
Hope that helps,
Niall
Views
Replies
Total Likes
Hi,
You can achive this using the currentPage property:
This JavaScript in the docReady event:
xfa.host.currentPage = xfa.host.numPages - 1;
Note, you subtract 1 from the number of pages to get it into the zero-based system for page numbers. Eg, the first page is 0.
Hope that helps,
Niall
Views
Replies
Total Likes
Thanks Naill, that's what I needed.
I'm sure you answer these types of "simple" questions all day long, but thank you for taking the time to respond.
Your continued assistance is greatly appreciated.
Thanks.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies