Skip to main content
Participant
October 8, 2025
Answered

Dropdown List with Assigned Dependents

  • October 8, 2025
  • 2 replies
  • 437 views

Question: How do I create a dropdown list with assigned dependents in other fields? Example, I want the primary dropdown list to have various project names to choose from. When I select a project name I would like another field in the form to automatically populate with a specific project number associated with the project name I selected. Thanks for your help!

Correct answer PDF Automation Station

Yes, you can have as many as you want by using a separator in the export values then splitting the value:

333-333-3333--president

The separator is --

The script for phone # field:

event .value=this.getField("Dropdown").value.split("--")[0]
Change the 0 to 1 for the position field

2 replies

PDF Automation Station
Community Expert
Community Expert
October 8, 2025

Use the project numbers as the export values of the corresponding project names and check "Commit selected value immediately" in the options tab of the dropdown.  Then enter the following custom calculation script in the text field that you want to populate with the project number:

event.value=this.getField("Dropdown1").value;

GunTravisAuthor
Participant
October 9, 2025

Works like a charm! Thanks!!!

try67
Community Expert
Community Expert
October 8, 2025

This can be achieved using a script.

I've developed a (paid-for) tool that allows you to set it up very easily, and it will work exactly as you've described. All you need is a spreadsheet that contains the field names and all of the data, and it will take care of the rest for you.

You can get it here: https://www.try67.com/tool/acrobat-create-cascading-dropdowns