Skip to main content
Known Participant
Jan 9, 2020 12:59 PM UTC
Question

Adding a Pages in a Form

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 is closed to new replies. Start a new post to keep the conversation going.

9 replies

Thom Parker
Community Expert
Community Expert
Jan 9, 2020 5:42 PM UTC

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

 

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Known Participant
Jan 9, 2020 6:00 PM UTC

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?

 

Translate
Bernd Alheit
Community Expert
Community Expert
Jan 9, 2020 6:10 PM UTC

You must use the method spawn.

Translate
try67
Community Expert
Community Expert
Jan 9, 2020 3:26 PM UTC

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?

Translate
Known Participant
Jan 9, 2020 4:17 PM UTC

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.

Translate
Bernd Alheit
Community Expert
Community Expert
Jan 9, 2020 3:08 PM UTC

What script does you use?

Translate
Known Participant
Jan 9, 2020 4:15 PM UTC

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

 

Translate