How to Keep a PDF Dropdown Export Value When Users Select Other
Question details
The user wants to preserve the original export value of a PDF dropdown list when a respondent selects 'Other' and needs to provide custom information.

- Product
- PDF Forms
- Device & OS
- not provided
- Scenario
- Creating an interactive PDF form where respondents can choose 'Other' from a dropdown menu and type in their specific details.
- Observed behavior
- When a user types their custom answer directly over the selected 'Other' dropdown item, the new text overwrites the selection. Consequently, the field loses its predefined export value.
Ensure you are using a PDF editing tool that supports interactive form field creation and JavaScript actions, such as Adobe Acrobat or WPS PDF.
Use a Separate Conditional Text Field for Custom Input
Instead of allowing users to type directly into the dropdown menu, keep the dropdown selection as 'Other' and conditionally display a separate text field for their custom input.
Typing directly into a dropdown field converts the selection into a user-entered value, which completely removes the predefined export value. To keep your form data clean and retain the export value, you should separate the selection mechanism from the custom input mechanism.
Add a Combo Box (dropdown) to your PDF form. In its Properties under the Options tab, add your standard choices along with an 'Other' option. Ensure 'Other' has the specific export value you need to preserve.
Create a new Text Field immediately next to or below the dropdown menu. This field will be used to collect the custom information when 'Other' is chosen.
Right-click the new Text Field, select Properties, and go to the General tab. Change the 'Form Field' visibility property from 'Visible' to 'Hidden'.
Open the Properties of your Dropdown menu and go to the Format or Validate tab. Add a custom JavaScript script that checks the dropdown's value. If the value equals 'Other', set the text field's display property to visible; otherwise, set it to hidden.

Create and Manage Interactive PDF Forms with WPS Office
WPS Office offers a comprehensive PDF editor that allows you to effortlessly design interactive forms, insert dropdown menus, and configure field properties.
- 1. Open the Form Editor: Launch WPS PDF, open your document, and click on the 'Form' tab in the top navigation ribbon.
- 2. Insert Form Fields: Select 'Combo Box' to draw your dropdown menu on the page, and select 'Text Field' to draw your custom input box.
- 3. Configure Properties: Double-click the fields to open their Properties panel, where you can easily set export values, add dropdown items, and adjust visibility.

Frequently Asked Questions
Why does the export value disappear when I type into a PDF dropdown?
When you type custom text into a dropdown field, the new text replaces the selected option entirely. Because it becomes a new user-entered string rather than a predefined choice, the original export value assigned to the 'Other' option is erased.
How do I hide a text field by default in a PDF form?
Right-click the text field and open its Properties. Navigate to the General tab, look for the visibility or form field status option, and change it from 'Visible' to 'Hidden'. This ensures the field only appears when triggered by another action.
Do I need JavaScript to show a hidden field when 'Other' is selected?
Yes, dynamically changing the visibility of one field based on the selection of another field requires a simple calculation or validation JavaScript attached to the dropdown menu.




