How to Create Dependent Combo Boxes in Adobe Acrobat Pro
Question details
The user wants to configure a customizable PDF form where the available choices in a secondary drop-down list automatically change based on the selection made in a primary drop-down list.

- Product
- Adobe Acrobat Pro
- Device & OS
- not provided
- Scenario
- Building interactive, user-friendly PDF forms that require dynamic data fields to streamline the form-filling process.
- Observed behavior
- The user needs to implement a dynamic dependent interaction between two combo boxes, which requires specific configuration and scripting within the PDF editor.
Ensure you have Adobe Acrobat Pro installed, as the standard free version (Acrobat Reader) does not support form creation or custom JavaScript embedding. It is also helpful to map out your parent and child drop-down categories in a text document before scripting.
Use Document JavaScript to Link Combo Boxes in Acrobat Pro
Adobe Acrobat Pro allows you to use document-level JavaScript and a custom Keystroke script to dynamically update the choices of a secondary combo box based on the selection made in a primary combo box.
This method involves creating two separate combo box fields. You will define the dependent data arrays in the Document JavaScripts section, and then trigger an update using a custom format script on the primary combo box.
Open your PDF document in Adobe Acrobat Pro. Go to the 'Tools' pane on the right side and select 'Prepare Form' to enter the form editing mode.
Click the 'Add a drop-down list' (Combo Box) icon in the top toolbar. Draw two fields on your document. Name the first one 'PrimaryDropdown' and the second one 'SecondaryDropdown'.
Navigate to 'Tools' > 'JavaScript' and select 'Document JavaScripts'. Create a new script named 'DropdownData'. Write JavaScript arrays that map your primary choices to the corresponding secondary choices.
Right-click the 'PrimaryDropdown' field, select 'Properties', and navigate to the 'Format' tab. Choose 'Custom' from the Select format category drop-down, and enter a Keystroke script that uses the 'setItems' method to update the 'SecondaryDropdown' based on the current selection.
Close the form editing mode by clicking 'Preview' or 'Close' at the top right. Select an option from your primary drop-down list to verify that the secondary drop-down list populates with the correct dependent options.

Easily Create Interactive PDF Forms with WPS PDF
While scripting dependent combo boxes requires advanced programming knowledge, WPS Office provides an intuitive, user-friendly PDF editor. You can quickly create, edit, and manage standard form fields—including drop-down lists, text fields, and checkboxes—without needing to write any code.
- 1. Open WPS PDF: Launch WPS Office and open your target PDF document using the built-in PDF editor.
- 2. Access the Form Tools: Navigate to the 'Form' tab on the top ribbon menu to reveal all available interactive form fields.
- 3. Insert a Combo Box: Click on the 'Combo Box' icon in the toolbar, then click and drag on your PDF page to draw the drop-down list field.
- 4. Customize Options: Double-click the inserted combo box to open its 'Properties'. Under the 'Options' tab, type your list items and click 'Add' to populate your drop-down list.

Frequently Asked Questions
Can I create dependent combo boxes in the free version of Adobe Acrobat?
No, Adobe Acrobat Reader (the free version) only allows users to view and fill out existing PDF forms. To create form fields and add custom JavaScript for dependent combo boxes, you must use Adobe Acrobat Pro.
Why isn't my secondary drop-down list updating when I change the primary selection?
This issue typically occurs if the JavaScript has a syntax error, or if the field names referenced in your script do not exactly match the actual names of the combo boxes in your PDF form. Verify your exact capitalization and check the Acrobat JavaScript console (Ctrl+J) for specific error messages.
Is it possible to make dependent drop-downs in a PDF without using JavaScript?
No, within the PDF format, creating dynamic interactions between separate form fields inherently requires JavaScript. There is no built-in, drag-and-drop feature to link two combo boxes in a dependent relationship without custom scripts.
Can WPS PDF open and fill out forms that have dependent combo boxes?
Yes, WPS PDF is highly compatible with standard interactive PDF forms. It can open these documents and allows you to fill out forms, including interacting with pre-configured dynamic or dependent combo boxes.




