PDF Editing Issues

How to Update PDF Drop-Down Values from Excel Data

Jason MillerJason Miller Oct 28, 2026 868 views

Question details

The user needs to refresh hardcoded PDF combo-box values using data from an Excel spreadsheet.

How to Update PDF Drop-Down Values from Excel Data
Product
PDF
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.
Before you start

Ensure you have the final approved list of items in your Excel spreadsheet ready to be copied or exported as a plain text file.

Solution 1Recommended

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.

1
Copy data from Excel

Open your Excel spreadsheet, highlight the cells containing the updated drop-down values, and copy them to your clipboard.

2
Create a temporary text field

Open your PDF form in editing mode. Create a new multi-line text field that will serve as the input area for your list.

3
Paste the Excel data

Exit editing mode temporarily and paste the copied Excel data into the new text field.

4
Execute the population script

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.

Populate a Combo Box using a Text Field and JavaScript
Scripting Requirement: This method requires basic PDF JavaScript knowledge to bind the text field data to the combo box properly.
Easily Edit PDF Forms with WPS Office

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. 1. Open the PDF form: Launch WPS Office and open your PDF document.
  2. 2. Access form editing tools: Navigate to the 'Form' tab on the top ribbon to enter form editing mode.
  3. 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. 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. 5. Save changes: Click 'Close' to exit the Properties window, then save your updated PDF file.
Easily add, delete, or modify combo-box items in PDF forms without complex scripting.Highly compatible with Adobe PDF form standards and features.Seamlessly view your Excel spreadsheets and edit your PDFs side-by-side within one tabbed interface.Free, lightweight alternative to heavy PDF editors.
microsoft office alternative - wps office

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.