Skip to main content
Participant
Apr 8, 2024 2:29 PM UTC
Question

Conditional text content after dropdown

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.

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Thom Parker
Community Expert
Community Expert
Apr 8, 2024 4:35 PM UTC
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Nesa Nurani
Community Expert
Community Expert
Apr 8, 2024 4:27 PM UTC

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