0
New Here
,
/t5/acrobat-discussions/how-to-populate-different-dropdown-list-based-on-selection-of-a-value-in-another-dropdown-field/td-p/11905895
Mar 17, 2021
Mar 17, 2021
Copy link to clipboard
Copied
Hi there,
I'm trying to create a fillable form in Acrobat Pro where I select a value in dropdown field A, dropdown field B will only display a list of values pertaining to the value in A.
Thanks.
TOPICS
PDF forms
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 ACCEPTED SOLUTION
Community Expert
,
/t5/acrobat-discussions/how-to-populate-different-dropdown-list-based-on-selection-of-a-value-in-another-dropdown-field/m-p/11906875#M303583
Mar 18, 2021
Mar 18, 2021
Copy link to clipboard
Copied
Use setItems() to populate dropdown field, here is an example code:
if(event.value == "Item1")
this.getField("Dropdown2").setItems(["Item 1","Item 2","Item 3"]);
else if(event.value == "Item2")
this.getField("Dropdown2").setItems(["Item 4","Item 5","Item 6"]);
else this.getField("Dropdown2").clearItems();
You can also give items an export value like this:
setItems([["Item 1", "1"], ["Item 2", "2"], ["Item 3", "3"]]);
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/acrobat-discussions/how-to-populate-different-dropdown-list-based-on-selection-of-a-value-in-another-dropdown-field/m-p/14224654#M438296
Nov 09, 2023
Nov 09, 2023
Copy link to clipboard
Copied
Use also a script at the Calendar dropdown.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/acrobat-discussions/how-to-populate-different-dropdown-list-based-on-selection-of-a-value-in-another-dropdown-field/m-p/14225273#M438334
Nov 10, 2023
Nov 10, 2023
Copy link to clipboard
Copied
Sure, that's possible.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

