Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

I want to link a drop down box choice to produce output to a text box, which in turn is used to populate another drop down list

New Here ,
Jan 24, 2018 Jan 24, 2018

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

TOPICS
Acrobat SDK and JavaScript , Windows
301
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 24, 2018 Jan 24, 2018
LATEST

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.

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines