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

Populate text based on multiple dropdown

New Here ,
May 20, 2024 May 20, 2024

Copy link to clipboard

Copied

I am creating a PDF document that dynamically displays specific text based on selections from multiple dropdown menus.

 

The first dropdown has options A and B. The second dropdown has options C and D. The third dropdown has options 1, 2, 3, 4, and 5.

 

This would then populate text boxes with specific information based off of the drop down. Such as selecting options A, C and ,3 will give different information to A D and 5. 

 

I also was B from the first box to not give other options just populate the box. 

 

I can get drop down 1 to change the drop down list in 2 depending what is selected? 

But not able to get the three in sync.

 

Then once they have all been selected it populate the text boxes with the relevant info. 

 

I can also get one drop down to sync with the text box but not with all 3 options. 

 

Is this possible ?

 

TOPICS
JavaScript , PDF forms

Views

129

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
Enthusiast ,
May 20, 2024 May 20, 2024

Copy link to clipboard

Copied

Yes, it's possible with a JavaScript.

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 ,
May 20, 2024 May 20, 2024

Copy link to clipboard

Copied

LATEST

You'll need to write a calculation script for the text fields that get a value based on several dropdowns. 

See these articles:

https://www.pdfscripting.com/public/Calculating-field-values-and-more.cfm

https://www.pdfscripting.com/public/List-Field-Usage-and-Handling.cfm

https://www.pdfscripting.com/public/How-to-write-an-If-statement.cfm

 

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