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

Creating a Form

New Here ,
Mar 07, 2023 Mar 07, 2023

Copy link to clipboard

Copied

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

Views

407

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

Copy link to clipboard

Copied

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});}

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

Copy link to clipboard

Copied

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