How to Update PDF Drop-Down Values from Excel Data
Question details
The user needs to refresh hardcoded PDF combo-box values using data from an Excel spreadsheet.

- Product
- Device & OS
- not provided
- Scenario
- Managing a deployed PDF form that needs updated combo-box values from an approved Excel list, but cannot access an external database natively.
- Observed behavior
- Deployed PDFs cannot automatically maintain a live connection to Excel, requiring a manual or script-based workaround to update drop-down items.
Ensure you have the final approved list of items in your Excel spreadsheet ready to be copied or exported as a plain text file.
Populate a Combo Box using a Text Field and JavaScript
Paste your Excel list into a designated text field within the PDF and use a JavaScript action to populate the combo box automatically.
Because standard PDF forms are self-contained and cannot easily query live external databases, using an embedded script is a highly effective workaround. By leveraging a multi-line text field as a temporary data container, you can copy data directly from Excel and use JavaScript to parse it into combo box options.
Open your Excel spreadsheet, highlight the cells containing the updated drop-down values, and copy them to your clipboard.
Open your PDF form in editing mode. Create a new multi-line text field that will serve as the input area for your list.
Exit editing mode temporarily and paste the copied Excel data into the new text field.
Add a custom JavaScript to a button or the text field's properties that reads the text field's content, splits the text by line breaks, and adds each item to the combo box using the addField method.

Convert Excel to Plain Text for Script Importing
Export the Excel data to a plain text file and use a pre-installed PDF script to import the values during form creation.
Create and Edit PDF Drop-Down Menus in WPS Office
WPS Office provides a lightweight, user-friendly PDF editor that allows you to easily create, modify, and manage interactive form fields, including combo boxes and drop-down lists.
- 1. Open the PDF form: Launch WPS Office and open your PDF document.
- 2. Access form editing tools: Navigate to the 'Form' tab on the top ribbon to enter form editing mode.
- 3. Select the Combo Box: Select 'Combo Box' to add a new drop-down, or double-click an existing combo box to open its Properties.
- 4. Add Excel items: In the 'Options' tab of the Properties window, manually type or paste the items from your Excel list into the 'Item' field and click 'Add' for each one.
- 5. Save changes: Click 'Close' to exit the Properties window, then save your updated PDF file.

Frequently Asked Questions
Can a PDF drop-down menu automatically sync with an online Excel sheet?
No, a standard PDF form cannot maintain a live external database connection natively for security and platform reasons. You must update the values manually or use advanced scripting to import data periodically.
How do I copy items from Excel to a PDF drop-down list without coding?
The easiest non-coding method is to open the PDF in form editing mode using software like WPS Office or Adobe Acrobat, open the combo-box properties, and manually paste the items one by one into the options list.
Why is my PDF drop-down list not showing the updated values?
Ensure you have saved the PDF after making changes to the form field properties. If using a script to populate the list, verify that the script executed correctly without any syntax errors and that the target field name matches exactly.




