PDF Editing Issues

Fix a Dependent Drop-Down List in an Adobe Acrobat PDF Form

Anum MushtaqAnum Mushtaq Nov 19, 2026 868 views

Question details

Update a PDF form script so the Division drop-down displays options based on the selected Department.

Fix a Dependent Drop-Down List in an Adobe Acrobat PDF Form
Product
Adobe Acrobat
Device & OS
not provided
Scenario
A user selects a Department in an interactive PDF form and expects the Division list to update.
Observed behavior
The Division list does not populate because the script uses unsupported setDivision and misspelled setDivison calls.
Before you start

Open the form in Adobe Acrobat and confirm that you can edit its fields. Check the exact field names and Department export values in the field properties before updating the script.

Solution 1Recommended

Update the Department validation script with setItems

Use Acrobat's combo box methods to replace Division options when the Department selection changes.

Acrobat uses setItems to populate a combo box and clearItems to remove its options. The example below handles one Department value; replace the sample Division names and add cases for your other departments.

1
Open the Department field properties

In Acrobat, open the PDF and choose All tools > Prepare a form. Double-click the Department drop-down to open its Properties.

2
Edit the validation script

On the Validate tab, select Run custom validation script and click Edit. Replace the existing logic with a script such as: var division = this.getField("Division"); if (division) { switch (event.value) { case "Public Works": division.setItems(["Engineering", "Maintenance"]); break; default: division.clearItems(); } }

3
Match the form values

In the script editor, replace "Division" with the exact target field name if needed. Match each case to the Department option's export value, and replace the example Division options with your own. Change any remaining setDivision or setDivison calls to setItems.

4
Test the selection

Save the PDF, close Prepare a form, and select each Department in Acrobat. Confirm that Division shows the corresponding options and clears for an unmatched value. If the update occurs only after leaving the field, check Commit selected value immediately on the Department field's Options tab.

Update the Department validation script with setItems
Test in Acrobat: Browser PDF viewers may not support Acrobat form JavaScript consistently. Test the saved form in Adobe Acrobat rather than relying on a browser preview.
Free Microsoft Office alternative

Work with PDFs and Office files in WPS Office

WPS Office is a free, lightweight alternative for everyday PDF and Office work, with a familiar interface and compatibility that makes it easy to move between common file formats. Use Adobe Acrobat to repair and test Acrobat-specific form JavaScript; WPS does not fix that script.

Open and work with PDF documents alongside your other filesCompatible with Microsoft Office formats including DOCX, XLSX, and PPTXFamiliar interface for a smooth transition from Microsoft OfficeFree, lightweight suite for everyday document tasks
QA img-9

Frequently Asked Questions

Why does setDivision not populate the drop-down?

setDivision is not the Acrobat combo box method for assigning options. In the Department field's validation script, use the Division field's setItems method instead.

How do I clear Division when no department matches?

Add a default case to the Department script's switch statement and call division.clearItems(), where division is the field returned by this.getField("Division").

Why does the list update only after I leave the Department field?

In Prepare a form, open the Department field's Properties and check Commit selected value immediately on the Options tab. Then test the selection again.

Should I test the form in a browser?

Test it in Adobe Acrobat. Browser PDF viewers may not consistently support the Acrobat JavaScript used to update form fields.