Skip to main content
Participating Frequently
October 14, 2024
Answered

Insert a pdf file based on radio button check

  • October 14, 2024
  • 1 reply
  • 981 views

Hi all,

I have an adobe form with two radio buttons "yes" and "no". When the user clicks "yes" two pages, also pdf form, should appear. How can this be done? Is it possible to automatically insert another pdf file if the "yes" option is checked?

Many thanks!

This topic has been closed for replies.
Correct answer try67

It's standard. How can I create a template with a script? 


Using this code:

this.createTemplate("P0", 0);

First parameter is the template name, and the second is the page number (zero-based, so 0 is the first page in the file).

1 reply

try67
Community Expert
Community Expert
October 14, 2024

Inserting the pages when the button is clicked is not a good idea. It's better to insert them in advance, hide them, and then make them visible when needed. To do that you would need to use a script, and the pages will have to be converted to Template objects.

Participating Frequently
October 14, 2024

I don't have the "Organize Pages" tool. Is it possible to convert the pages to Template object without that tool?

try67
Community Expert
Community Expert
October 14, 2024

That's odd. Do you have Acrobat or just the free Reader?