Skip to main content
Known Participant
January 9, 2020
Question

Adding a Pages in a Form

  • January 9, 2020
  • 3 replies
  • 623 views

I am looking for some help. I am very new with Adobe and I am working on a form that has radio buttons and I want to add pages into the form when a button is selected. I have made my 2 additional pages templates with the names: Additonal 1 and Additional 2. I am struggling with the script to make this happen. Any help would be awesome!

This topic has been closed for replies.

3 replies

Thom Parker
Community Expert
Community Expert
January 9, 2020

To do this you'll need to use a Page Template. You'll find plenty of posts here on this topic. Here's a search:

https://community.adobe.com/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&filter=location&location=forum-board:acrobat&q=Page%20Template

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Known Participant
January 9, 2020

I have made both additional pages templates within the file. I am looking for the script that will bring these additional pages up with the button is selected. Any ideas?

 

Bernd Alheit
Community Expert
Community Expert
January 9, 2020

You must use the method spawn.

try67
Community Expert
Community Expert
January 9, 2020

Are you trying to spawn pages from the Templates or to show/hide them? What code are you using, and what happens when you use it?

Known Participant
January 9, 2020

I have a single page for with fields to be filled and radio buttons to be checked. I have 2 buttons, that when checked will add a new form with new fields to be completed. If both buttons are selected then the form would be a total of 3 pages. I am new to the scripts, so I am looking for guidance on the correct script.

Bernd Alheit
Community Expert
Community Expert
January 9, 2020

What script does you use?

Known Participant
January 9, 2020

I don't have a script I'm using. That is what I'm looking for guidance with.