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.
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"]]);
Copy link to clipboard
Copied
Use also a script at the Calendar dropdown.
Copy link to clipboard
Copied
Sure, that's possible.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now