I have 2 dropdown lists on my pdf form named, "Category" and "Items". I need to make the "Items" List dependent on the "Category" List. The "Category" List items are "Fruits", "Veggies", "Other". If you select "Fruits", then the "Items" list would contain a list of fruits. If you select "Veggies", then the "Items" list would contain a list of vegetables, etc.
Your help is appreciated.
See these other discussions:
You may also want to dig more in these tutorials from ACP Thom Parker:
If you're interested, I've developed a (paid-for) tool that allow you to set it up easily and quickly, without having to write any code. You can find it here: https://www.try67.com/tool/acrobat-create-dependent-dropdowns
In "Category" field->properties->options tab tick 'Commit selected value immediately', use script in "Category" field as validation:
var f = this.getField("Items");
"Other" choice will clear items from "Items" field, if you want something else under "Other" choice let me know.
Hi! I used the below formula posted by Nesa and it worked however whenever I select something in the dropdown 2 after selecting an option from the first dropdown 1, it keeps defaulting to the first value listed for dropdown 2. How do I get rid of this default?
Use script in 'validation' tab, not 'calculation'.