Copy link to clipboard
Copied
In Acrobat, given two dropdown lists, one with 13 items and the other with 3, the user makes a single selection in each list. The result is to display a text field based on the unique combination of these two dropdown choices. My js skills are quite limited, but I assume there is a way to do that. Any help appreciated.
Sure. You can use something like this as the custom calculation script of the text field:
var v1 = this.getField("Dropdown1").valueAsString;
var v2 = this.getField("Dropdown2").valueAsString;
if (v1=="Tom" && v2=="Smith") event.value = "Manager";
if (v1=="Tom" && v2=="Roberts") event.value = "Vice-President";
if (v1=="Jane" && v2=="Becker") event.value = "CEO";
if (v1=="Rodney" && v2=="Dangerfield") event.value = "Janitor";
// etc.
Copy link to clipboard
Copied
Yeah, it's quite complex... I have quite a lot of experience with this kind of custom-made scripts, including for Templates, so if you're interested I could develop it for you, for a small fee. You can contact me privately (try6767 at gmail.com) to discuss it further.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more