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

Making a form field visible and automatically moves other form fields

Explorer ,
Feb 14, 2020 Feb 14, 2020

Copy link to clipboard

Copied

Does anyone know if this is possible ? 

I have a form that has the potential of 0 to 4 clients work of information to be filled out. 

If the person selects 3 clients I would like 2 client sections to appear, I know how to make a field "hidden" and visible. But is it possible for other form fields to move down automatically if more than one client is selected. 

So if there is 2 clients (when the option is selected) a second client section would appear but insert itself under the first client and then move everything else down automatically so it does not overlap. 

 

Thank you

TOPICS
Acrobat SDK and JavaScript

Views

258

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

correct answers 1 Correct answer

Community Expert , Feb 17, 2020 Feb 17, 2020

Creating a Page Template for the client sections is the way to go. Reflowing fields (and associated page content) is not feasible with PDFs.  

Votes

Translate

Translate
Community Expert ,
Feb 14, 2020 Feb 14, 2020

Copy link to clipboard

Copied

To do that you would need to place the entire contents of the file in form fields, or you could use entire pages by converting them Template objects and then spawn/delete them as needed.

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 ,
Feb 17, 2020 Feb 17, 2020

Copy link to clipboard

Copied

LATEST

Creating a Page Template for the client sections is the way to go. Reflowing fields (and associated page content) is not feasible with PDFs.  

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