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

Creating a Form

New Here ,
Mar 07, 2023 Mar 07, 2023

I am creating a Form and have a radio button that if they click on it I am wanting it to add some pages that they have to certify items. How do I get those hidden pages to populate in a form only when a radio button is clicked?

TOPICS
PDF forms
683
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 ,
Mar 07, 2023 Mar 07, 2023

If you created templates, you can spawn them by using  this as 'Mouse Up' action of radio button you wish to spawn template (just change template name to your actual template name):

var t1 = getTemplate("template name");
if (event.target.value != "Off"){
t1.spawn({nPage: numPages, bRename: false, bOverlay: false});}

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 ,
Mar 07, 2023 Mar 07, 2023
LATEST

The only way to add new pages to a PDF at runtime is with a Page Template. You'll find many posts on this topic. Here's a search link (not all posts are useful, you'll need to look thru them):

https://community.adobe.com/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&...

 

Page templates are created from the "Organize Pages" tool bar. 

PageTemplateCreation.jpgexpand image

 

 

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

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