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

Need a button to trigger a hidden page to show

New Here ,
Jul 25, 2024 Jul 25, 2024

Copy link to clipboard

Copied

I have a PDF with a page that collects 'building information,' and the user needs to be able to repeat that page up to 10 times to add additional buildings. I don't just want 10 pages of the same fields in case someone only needs to fill out one building page.

 

I'd like a button to 'add additional buildings' that will open one more building page to fill out (etc. etc. until they've reached 10, if desired).

 

Is there a way to hide duplicate pages, and have a button trigger those hidden pages to show up to be completed?

 

TOPICS
Acrobat SDK and JavaScript

Views

39

Translate

Translate

Report

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 ,
Jul 25, 2024 Jul 25, 2024

Copy link to clipboard

Copied

LATEST

Adding new pages is implemented with a Page Template, which is spawned to create new pages. 

Unfortunately there isn't a lot of good documentation on this topic. But Page templates are created with a menu item in the "Organize Pages" toolset. Then JavaScript is used to create the new pages. This functionality only works in viewers that implement the Acrobat JavaScript model.

PageTemplateCreation.jpg

 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

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