How to Use One Master List for Multiple PDF Drop-Down Fields in Acrobat
Question details
The user wants to populate several drop-down menu fields in a PDF form using a single master list to avoid updating each field individually.

- Product
- Adobe Acrobat / PDF
- Device & OS
- not provided
- Scenario
- Creating or maintaining an interactive PDF form where multiple drop-down boxes require the exact same set of selectable options.
- Observed behavior
- Without a master list, the form creator is forced to manually enter and update the item list for every single drop-down field, which is tedious and prone to errors.
Verify that you have form-editing permissions for the PDF document and familiarize yourself with the JavaScript console in Adobe Acrobat before adding document-level scripts.
Use Document-Level JavaScript to Centralize Menu Items
By defining your master list entirely within a document-level JavaScript, you can easily apply the array values to multiple specific drop-down fields in one place.
This method creates a variable array that stores all of your drop-down options centrally. By referencing this single array, any future updates to the list only need to be made once in the code, rather than individually within the properties of every drop-down field.
In Adobe Acrobat, open your PDF and go to the 'Tools' menu. Search for 'JavaScript', click on it, and select 'Document JavaScripts' from the toolbar.
Type a name for your script (for example, 'MasterDropdownList') in the Script Name field and click 'Add'.
In the JavaScript Editor, declare an array for your items and use the `setItems()` method to populate your fields. For example: `var aItems = ["Option One", "Option Two", "Option Three"]; getField("dropdown1").setItems(aItems); getField("dropdown2").setItems(aItems);`.
Click 'OK' to save the script and close the window. The specified drop-down fields will now automatically populate with the items from your master array.
Copy, Paste, and Rename Fields
If you are not comfortable writing JavaScript, you can manually set up the first field and copy it. This method works well for smaller forms.
Create and Manage PDF Forms Easily with WPS Office
Streamline your document workflow with WPS Office. From editing text to filling forms and converting documents, WPS Office offers a comprehensive and user-friendly PDF solution tailored for high productivity.
- 1. Open your PDF in WPS Office: Launch the WPS Office application and open your existing PDF document.
- 2. Navigate to the Form Tab: Click on the 'Form' tab on the top ribbon to access the interactive form controls.
- 3. Add Drop-Down Fields: Select the 'Combo Box' or 'Drop-Down' tool, click on the document to place it, and double-click to easily configure list options in its properties menu.

Frequently Asked Questions
Why do my PDF drop-down fields automatically select the same value?
If multiple drop-down fields have the exact same 'Name' in their properties, they become completely linked. Changing a selection in one will automatically mirror the selection in the other. To fix this, open the field properties and give each drop-down field a unique name.
Can I import drop-down items from a text file into Acrobat?
Adobe Acrobat does not have a native, built-in button to import list items directly from a plain text file. However, you can achieve this by using custom third-party action scripts or using document-level JavaScript to parse array arrays.
Is it possible to make drop-down selections change based on another drop-down field?
Yes, this is known as a dynamic or dependent drop-down list. In Adobe Acrobat, you must use a custom Keystroke or Validate JavaScript function on the parent drop-down field to automatically swap out the item array in the dependent field when a specific option is chosen.




