Skip to main content
Participant
October 19, 2016
Answered

Spawning Multiple Pages

  • October 19, 2016
  • 1 reply
  • 1103 views

I am updating an old form of ours which will make a 15 page long form into a 2 page form (With the option to add the pages needed to it), This form has a list of options with radio buttons.  When they click Yes on one of the options, it spawns a template page for that option and navigates to the last page.  This has worked perfectly until I got to an option that requires two pages to be spawned.  I can get it to spawn two pages but I need it to navigate to the second last page now instead of the last page.  Does this even make sense?  Is there any way to do this at all?  I am using Adobe Acrobat Pro.  Thanks in advance hopefully! (Btw I am self taught so don't have much understanding of the program or Javascript but am trying hard!)

This topic has been closed for replies.
Correct answer try67

Are you having a problem with the placement of the spawned pages, or do you mean that you just want to "jump" to the second to last page after the new pages are added? If the latter you can do it using this code:

this.pageNum = this.numPages-2;

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
October 19, 2016

Are you having a problem with the placement of the spawned pages, or do you mean that you just want to "jump" to the second to last page after the new pages are added? If the latter you can do it using this code:

this.pageNum = this.numPages-2;

Participant
October 20, 2016

Thank you so much!  Exactly what I was after!