Drop Down Field Coding


i'm using acrobat pro , editing pdf form have made.  have drop down field 4 different options (let's 1-4). have second drop down field next it.

 

what need make list of options in second field dependent on selection in first drop down. (i.e. first drop down field selections 1-4, , second drop down field selections a-d, if 3 selected in first drop down want second field options a-e.  makes sense. 

 

thank you!

[i moved question pdf forms forum. lounge not technical questions.]

 

yes, can achieved using script. basic format of script (as custom validation script of first field):

if (event.value=="1") this.getfield("dropdown2").setitems(["a", "b", "c", "d"]); else if (event.value=="2") this.getfield("dropdown2").setitems(["a", "b", "c", "d", "e"]); // etc. else this.getfield("dropdown2").clearitems(); 

 

if you're interested in tool allow set such dependent drop-down fields easily, , without having write code, check out 1 i've developed: custom-made adobe scripts: acrobat -- create dependent dropdowns



More discussions in PDF Forms


adobe

Comments

Popular posts from this blog

Reader DC

AdobeIDの作り方

Adobe InDesign CC 2017 has stopped working