How to Display a PDF Drop-Down List Value in Another Field
Question details
The user wants to copy the visible display value of a PDF drop-down list into a separate text field instead of populating it with the item's underlying export value.

- Product
- Device & OS
- not provided
- Scenario
- Designing an interactive PDF form that requires a text box to automatically reflect the selected visible item from a drop-down menu.
- Observed behavior
- When referencing a drop-down field, standard methods might pull the export value (e.g., '1') instead of the display label (e.g., 'One').
Ensure you are using a professional PDF editor with form creation and JavaScript capabilities, and verify the exact field name of your target text box before proceeding.
Use a Custom Validation Script
You can add a brief JavaScript snippet to the drop-down field's properties to push its selected display value directly into your target text box.
PDF drop-down lists contain both a visible 'Item' name and an 'Export Value'. To display the item name in another field rather than the export value, you need to execute a script upon selection.
Open your PDF form in your editor. Navigate to the Form editing tools, right-click the drop-down list field, and select 'Properties'.
In the Drop-down Properties dialog box, click on the 'Validate' tab to configure custom actions.
Select the 'Run custom validation script' option and click 'Edit'. Type the following script: this.getField("TextboxB").value = event.value; (Be sure to replace "TextboxB" with the actual name of your target text field).
Click 'OK' to save the script and close the Properties window. Exit form editing mode and choose an item from the drop-down to see the text field update automatically.

Create and Manage Advanced PDF Forms in WPS Office
WPS Office provides powerful PDF editing features, allowing you to easily insert drop-down lists, text fields, and custom validation scripts to make your forms interactive and professional.
- 1. Open Your PDF: Launch WPS Office and open your PDF document.
- 2. Access Form Tools: Navigate to the 'Form' tab on the top ribbon to access interactive fields like drop-down lists and text boxes.
- 3. Edit Field Properties: Double-click any form field to open its properties menu, where you can easily customize appearances, options, and validation scripts.

Frequently Asked Questions
Why is my text field showing the export value instead of the display name?
If you use a basic calculation script, the PDF naturally pulls the underlying 'Export Value' of the drop-down. To retrieve the display name, you must use a validation script like 'event.value' on the drop-down field itself.
Can I copy the drop-down value into multiple text fields at once?
Yes. You can add multiple lines to your validation script to update several fields simultaneously. For example: this.getField("Field1").value = event.value; this.getField("Field2").value = event.value;
Does this JavaScript validation work on mobile PDF viewers?
JavaScript support varies heavily across mobile PDF readers. While it works perfectly on robust desktop applications like WPS Office and Adobe Acrobat, many basic mobile apps may not execute custom form scripts.




