Skip to main content
Participant
Jan 6, 2025 8:27 PM UTC
Answered

If/then dropdown scenarios

I'm being asked if you can have a dropdown that contains several selections. When they choose a selection they want the dropdown next to it to have a specific set of selections. So if someone chooses A in the first dropdown the one next to it would list AA AB AC. If someone chooses B in the first then the dropdown would list BA BB BC. 

PDF Automation Station
Community Expert
Jan 6, 2025 8:52 PM UTC

In the options tab of the first dropdown, select "Commit selected value immediately", then enter the following custom validation script:

if(event.value=="A")
{this.getField("Dropdown2").setItems(["AA","AB","AC"])} else
if(event.value=="B")
{this.getField("Dropdown2").setItems(["BA","BB","BC"])}

I created a couple of (paid for) tools to automate the process when you have a lot of entries:

https://www.pdfautomationstation.com/products/item17.cfm

https://www.pdfautomationstation.com/products/item16.cfm

 

2 replies

PDF Automation Station
Community Expert
Community Expert
Jan 6, 2025 8:52 PM UTC

In the options tab of the first dropdown, select "Commit selected value immediately", then enter the following custom validation script:

if(event.value=="A")
{this.getField("Dropdown2").setItems(["AA","AB","AC"])} else
if(event.value=="B")
{this.getField("Dropdown2").setItems(["BA","BB","BC"])}

I created a couple of (paid for) tools to automate the process when you have a lot of entries:

https://www.pdfautomationstation.com/products/item17.cfm

https://www.pdfautomationstation.com/products/item16.cfm

 

Translate
Nesa Nurani
Community Expert
Community Expert
Jan 6, 2025 8:48 PM UTC

Yes, this is possible, you can search forum for dependent dropdown or take a look at these posts:

https://community.adobe.com/t5/acrobat-sdk-discussions/multiple-dependent-dropdowns/m-p/15038508#M93688 

Translate