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

Conditional text content after dropdown

New Here ,
Apr 08, 2024 Apr 08, 2024

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

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;

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

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