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

Conditional text content after dropdown

New Here ,
Apr 08, 2024 Apr 08, 2024

Copy link to clipboard

Copied

Hi,

I am a beginner with Acrobat and I'm trying to set up a Dropdown Field für all the different Branches of my Company. In the Dropdown I have 4 different example branches. Depending on the selection, I would like to display the address of the branch below. So if I pick Branch 2, I want the Adress of Branch 2. Is there any possibility to make a conditional text field? I think it's not a very elegant solution to put 3 separate dropdown fields right next to each other, I want to controll everythin with one drop down field if possible.Screenshot 2024-04-08 162730.jpg

TOPICS
Create PDFs , Edit and convert PDFs , PDF forms

Views

69

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 ,
Apr 08, 2024 Apr 08, 2024

Copy link to clipboard

Copied

Set address as export value of each Branch and then use something like this as custom calculation script of dropdown field:

this.getField("Address").value = event.value;

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 ,
Apr 08, 2024 Apr 08, 2024

Copy link to clipboard

Copied

LATEST

You can read about scripting this type of behavior in these articles:

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

https://acrobatusers.com/tutorials/change_another_field/

 

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