PDF Editing Issues

How to Import Excel or Text Values into an Acrobat PDF Drop-Down Field

Maira MehtabMaira Mehtab Nov 5, 2026 869 views

Question details

The user needs to populate an Adobe Acrobat PDF drop-down field with a large list of values (e.g., from an Excel or text file) without having to type each item manually.

How to Import Excel or Text Values into an Acrobat PDF Drop-Down Field
Product
Adobe Acrobat Pro DC
Device & OS
not provided
Scenario
Creating an interactive PDF form that requires a drop-down menu containing approximately 40 predefined items from an external list.
Observed behavior
Adding items one by one through the standard properties menu is too tedious; a bulk import or automated method is required.
Before you start

Ensure you have Adobe Acrobat Pro DC installed, as standard readers do not support executing advanced form-editing JavaScript. Keep your Excel or text file open to copy the list of values.

Solution 1Recommended

Use Acrobat JavaScript to Populate Drop-Down Items

Use a simple JavaScript command in Acrobat's debugger console to push an array of values into your target drop-down field instantly.

Adobe Acrobat allows you to interact with form fields programmatically using JavaScript. By converting your Excel or text list into a JavaScript array, you can populate the entire drop-down menu in a single execution.

1
Format your list as a JavaScript array

Open your Excel spreadsheet or text file. Format your list of values into a JavaScript array string. For example, add quotes around each item and separate them with commas, like this: ["SELECT", "ITEM 1", "ITEM 2", "ITEM 3"]. You can use Excel formulas like CONCATENATE or TEXTJOIN to speed up this formatting.

2
Open the JavaScript Debugger Console

In Adobe Acrobat Pro DC, press 'Ctrl + J' (Windows) or 'Cmd + J' (Mac) to open the JavaScript Debugger console.

3
Input the setItems script

In the console window, type the following code. Replace 'Dropdown1' with the exact name of your form field, and replace the sample array with your formatted list: this.getField("Dropdown1").setItems(["SELECT", "ITEM 1", "ITEM 2", "ITEM 3"]);

4
Execute the code

Highlight the line of code you just typed, then press 'Ctrl + Enter' (Windows) or 'Cmd + Enter' (Mac) on the numeric keypad to execute it. The console will run the script, and your drop-down field will immediately be populated with the new values.

Use Acrobat JavaScript to Populate Drop-Down Items
Tip for large lists: If you are importing hundreds of items, using an Excel formula to generate the exact JavaScript array syntax will save you a massive amount of manual formatting time.
Simple PDF Form Creation

Easily Create and Edit PDF Forms with WPS Office

If navigating JavaScript consoles in Acrobat feels overly complex, WPS Office provides an intuitive, visually-driven PDF form builder. You can easily insert and configure drop-down lists, text fields, and checkboxes without writing a single line of code.

  1. 1. Open your document in WPS PDF: Launch WPS Office, select the PDF module, and open the document you want to convert into a fillable form.
  2. 2. Access the Form tools: Navigate to the 'Form' tab on the top ribbon. This section contains all the tools needed to add interactive fields to your document.
  3. 3. Insert and configure a Drop-Down field: Click the 'Combo Box' (Drop-Down) icon and drag to draw the field on your page. Double-click the newly created field to open its properties, where you can quickly type and add your list items under the 'Options' tab.
Intuitive PDF form builder for drop-downs, text fields, and interactive checkboxesSeamless format compatibility with Microsoft Word, Excel, PowerPoint, and Adobe PDF filesLightweight application that loads faster and uses fewer system resourcesCost-effective alternative for comprehensive everyday PDF editing and document management
microsoft office alternative - wps office

Frequently Asked Questions

Can I link a PDF drop-down directly to a live Excel spreadsheet?

No, standard PDF drop-down fields cannot dynamically link to an external live Excel file. You must import the data statically using JavaScript or manually update the PDF items whenever the spreadsheet changes.

Why isn't Ctrl + J opening the JavaScript console in Acrobat?

Ensure you are using Adobe Acrobat Pro DC and that JavaScript is enabled. Acrobat Reader or standard versions may restrict access to the JavaScript Debugger. You can enable it via Edit > Preferences > JavaScript, ensuring 'Enable Acrobat JavaScript' is checked.

Is there a limit to how many items I can add to a PDF drop-down list?

While the PDF specification does not set a strict technical limit for drop-down items, adding thousands of options can cause performance lag and make it difficult for users to scroll. It is recommended to keep your lists as concise as possible.