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

Insert a pdf file based on radio button check

New Here ,
Oct 14, 2024 Oct 14, 2024

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!

TOPICS
How to , PDF forms
1.0K
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
1 ACCEPTED SOLUTION
Community Expert ,
Oct 15, 2024 Oct 15, 2024
LATEST

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

View solution in original post

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
Community Expert ,
Oct 14, 2024 Oct 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.

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 14, 2024 Oct 14, 2024

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

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
Community Expert ,
Oct 14, 2024 Oct 14, 2024

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

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 14, 2024 Oct 14, 2024

It's an older version of Acrobat. In the "Pages" tool I have Page thumbnails, rotate, delete, extract, replace, crop and split doc.

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
Community Expert ,
Oct 15, 2024 Oct 15, 2024

Is it Acrobat Standard or Pro? Only the latter gives you direct access to the Templates dialog, but you can still create them using a script.

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 15, 2024 Oct 15, 2024

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

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
Community Expert ,
Oct 15, 2024 Oct 15, 2024
LATEST

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

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