Skip to main content
Participant
January 6, 2025
Answered

If/then dropdown scenarios

  • January 6, 2025
  • 2 replies
  • 436 views

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. 

Correct answer PDF Automation Station

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
January 6, 2025

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

 

Nesa Nurani
Community Expert
Community Expert
January 6, 2025

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