Create a PDF Drop-Down Menu That Fills Multiple Fields in Adobe Acrobat Pro
Question details
Create a PDF form drop-down that fills separate employee name, title, and company fields.

- Product
- Adobe Acrobat Pro
- Device & OS
- not provided
- Scenario
- A form user selects an employee from a drop-down menu.
- Observed behavior
- The selected employee's details should appear in three separate fields.
Check the exact Adobe application and version, since form editing and scripting features vary. Prepare the employee names, titles, and companies you want to include in the drop-down mapping.
Use a Drop-Down Validation Script in Acrobat Pro
Use this method when you can edit the PDF form in Acrobat Pro and want one selection to populate three text fields.
Open the PDF in Acrobat Pro and choose All tools > Prepare a form. In some versions, use Tools > Prepare Form.
Add a drop-down field and three text fields. In each text field's Properties dialog, set its name to EmployeeName, EmployeeTitle, or EmployeeCompany, respectively.
Open the drop-down field's Properties dialog and select Options. Add choices such as Alice Smith and Bob Jones, using those same values as their export values. Enable Commit selected value immediately if the option is available.
In the drop-down Properties dialog, open Validate, select Run custom validation script, and click Edit. Enter the script below, replacing the example entries with your own. The keys must match the choices' export values, and the field names must match the names in your form. var employees = { "Alice Smith": ["Alice Smith", "Manager", "Acme Inc."], "Bob Jones": ["Bob Jones", "Analyst", "Example Corp."] }; var key = String(event.value); var data = Object.prototype.hasOwnProperty.call(employees, key) ? employees[key] : ["", "", ""]; this.getField("EmployeeName").value = data[0]; this.getField("EmployeeTitle").value = data[1]; this.getField("EmployeeCompany").value = data[2];
Close the Properties dialog, click Preview in Prepare a form, and select each employee. Confirm that all three text fields change to the matching values, then save the PDF.

View PDF Forms and Work with Office Files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for viewing PDFs and working with Office documents. Its format compatibility makes it easy to bring existing files into your workflow. It does not replace Acrobat Pro's form-scripting setup described above.

Frequently Asked Questions
Why don't the text fields update when I select an employee?
In Prepare a form, check that the text field names match the names in the script and that each drop-down export value matches a key in the employee mapping. Also check that JavaScript is enabled in the PDF viewer.
Can the drop-down show one label but use a different value in the script?
Yes. In the drop-down Properties > Options tab, set the displayed item and its export value. Use the export value as the corresponding key in the script.
How do I add another employee?
Add a choice in the drop-down Properties > Options tab, then add a matching entry to the employees object in the Validate tab's custom script. Include the employee's name, title, and company in that order.
Will the fields update in every PDF viewer?
Not necessarily. The viewer must support the form JavaScript used by the PDF and allow it to run. Test the saved form in the viewer your recipients will use.




