PDF Editing Issues

How to Display Dropdown Item Name Instead of Export Value in Adobe Acrobat

Khadija KhanKhadija Khan Nov 10, 2026 869 views

Question details

The user wants to fetch and display the visible text label of a dropdown list item in a PDF text field rather than the hidden export value associated with that item.

How to Display a Dropdown Item Name Instead of Its Export Value in Adobe Acrobat
Product
Adobe Acrobat
Device & OS
not provided
Scenario
Designing an interactive PDF form where a dropdown list's visible label (e.g., 'ITEM A') needs to be mirrored in a separate text field, while the export value (e.g., '$20') is used elsewhere.
Observed behavior
By default, referencing the dropdown field directly retrieves its export value. Extracting the display name requires a custom script to access the specific index array.
Before you start

Ensure you are using a PDF editor with advanced form creation capabilities, such as Adobe Acrobat Pro, and that you have access to the 'Prepare Form' tool to edit field properties.

Solution 1Recommended

Use a Custom Calculation Script in the Destination Text Field

Apply a short JavaScript snippet to the target text field to pull the display name based on the current selection index of the dropdown field.

In PDF forms, a dropdown menu often pairs a 'Display Name' (what the user sees) with an 'Export Value' (the underlying data). Standard calculations automatically pull the export value. To get the display name, you must use JavaScript to target the index of the selected item.

1
Enter Prepare Form Mode

Open your PDF document in Adobe Acrobat, navigate to the Tools menu, and select 'Prepare Form' to enable form field editing.

2
Access Target Field Properties

Right-click the text field where you want the dropdown's name to appear, and choose 'Properties' from the context menu.

3
Add Custom Calculation Script

Go to the 'Calculate' tab, select 'Custom calculation script', and click the 'Edit' button.

4
Insert the JavaScript

Enter the following script, replacing 'myDropdown' with the exact name of your dropdown field: var f = this.getField("myDropdown"); var a = f.currentValueIndices; event.value = f.getItemAt(a, false);

5
Save and Test

Click 'OK', close the properties dialog, and exit the form editing mode to test your dropdown menu and see the label displayed in your text field.

Use a Custom Calculation Script in the Destination Text Field
Copying the Export Value Instead: If you decide you need the export value later, simply change the custom script to: event.value = this.getField("myDropdown").value;
Powerful PDF Form Editor

Edit and Manage PDF Forms Easily with WPS Office

WPS Office provides an advanced yet intuitive PDF editing suite that lets you create, fill, and modify interactive PDF forms, making document data collection simple and seamless.

  1. 1. Open WPS Office PDF: Launch WPS Office on your device and navigate to the PDF module from the home screen.
  2. 2. Load Your PDF Document: Click 'Open' to select the PDF form file you wish to modify or fill out.
  3. 3. Navigate to the Form Tab: Click on the 'Form' tab on the top ribbon to access the interactive form creation and editing tools.
  4. 4. Modify Form Fields: Double-click or right-click on any dropdown list or text field to adjust its properties, appearance, and underlying data parameters.
  5. 5. Save Your Form: Once your fields are configured, click 'Save' to finalize the interactive document for distribution.
Comprehensive tools for adding and editing text fields, dropdowns, and checkboxesFull compatibility with standard Adobe Acrobat PDF formats and interactive elementsLightweight application that handles complex PDF editing tasks without slowing down your system
microsoft office alternative - wps office

Frequently Asked Questions

Why does my PDF dropdown display a number instead of the text string?

This happens when the dropdown list is configured with an 'Export Value' (such as a price or an ID number) that differs from the visible item name. Standard form references pull the export value by default.

Can I display the dropdown item name without using JavaScript?

No, Acrobat's built-in simplified field notation and value copying features only transfer the export value. Accessing the item name property requires the brief custom JavaScript provided in the solution.

What if my dropdown field allows multiple selections?

If multiple selections are enabled, the 'currentValueIndices' property returns an array of selected indices instead of a single number. You would need to modify the script to loop through the array and join the item names into a single string.