Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
What script does you use?
Copy link to clipboard
Copied
I don't have a script I'm using. That is what I'm looking for guidance with.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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:
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
You must use the method spawn.
Copy link to clipboard
Copied
Any ideas on a script to write in on a mouse up button?
Copy link to clipboard
Copied
Look at some of the other posts about templates. There are several examples of using the spawn method. Test it out from the console window, so you know how it all works, before using the script on the checkboxes.
You'll find a tutorial here using the Console:
https://www.pdfscripting.com/public/Free_Videos.cfm#JSIntro