Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Spawning Multiple Pages

New Here ,
Oct 18, 2016 Oct 18, 2016

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!)

TOPICS
Acrobat SDK and JavaScript , Windows
992
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 19, 2016 Oct 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;

Translate
Community Expert ,
Oct 19, 2016 Oct 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;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 19, 2016 Oct 19, 2016
LATEST

Thank you so much!  Exactly what I was after!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines