Copy link to clipboard
Copied
The scenario is :
A dropdown box that has a number of names, based on the name picked I would like to populate that person's age in a text box, then using that person's age I would like to populate another dropdown box with several choices, based on the age.
I would like the 2nd drop down box to be updated from some sort of array defined for that person's name and age. Each person will need to be unique as far as the data in the 2nd drop down list.
I have figured out how to populate the text box from the first dropdown list, but how do I take the text output and make a choice on populating another droptdown list.
Any help would be appreciated.
Dan
Copy link to clipboard
Copied
Here are a couple of articles that show how to populate a dropdown/list with items:
https://www.pdfscripting.com/public/List-Field-Usage-and-Handling.cfm
https://acrobatusers.com/tutorials/js_list_combo_livecycle
https://acrobatusers.com/tutorials/list_and_combo_in_lc
The first one discusses the general programming environment for lists
The second one shows a technique for populating a list with a total set of new items. The example is very close to your setup
The third one shows how to add and delete individual items.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now