Fix Adobe Acrobat Form Drop-Down Defaults and Field Visibility
Question details
The user needs to set default values for drop-down menus in a PDF form and control the visibility of other fields based on the drop-down selection.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Configuring a dynamic PDF form with default drop-down values and conditional field logic.
- Observed behavior
- Drop-down defaults are not saving correctly, and conditional fields are not displaying or hiding properly based on user selections.
Ensure you are in Adobe Acrobat's Prepare Form mode and have a basic understanding of Adobe JavaScript for PDF forms before modifying scripts.
Set and Retain Drop-Down Default Values
Configure the default option for your drop-down menu so it resets appropriately when the form is cleared.
Enter form-editing mode in Acrobat, double-click the target drop-down field, and open the Properties dialog.
Navigate to the Options tab and select the specific item in the list that you want to act as the default choice.
Clear or reset the form data to restore the default value, then save the document. If you save without resetting, the currently selected value will be locked in when reopened.

Use Keystroke Scripts for Field Visibility
Apply a custom Keystroke event script to show or hide fields dynamically based on the drop-down selection.
Easily Create and Manage PDF Forms with WPS Office
WPS Office provides an intuitive PDF editor to easily create, edit, fill, and manage PDF forms without needing complex scripting knowledge.
- 1. Open PDF in WPS: Launch WPS Office and open your PDF document.
- 2. Access form tools: Navigate to the Form tab on the top ribbon.
- 3. Insert form fields: Use the provided tools to insert text fields, drop-down menus, and checkboxes where needed.
- 4. Save your document: Save the PDF file; it will remain fully compatible with all standard PDF readers.

Frequently Asked Questions
Why is my PDF form drop-down not showing the default value when reopened?
If you select a value in the drop-down and save the form without resetting it first, Acrobat retains the selected value instead of the default. Always clear or reset the form before your final save.
Should I use a Calculate or Keystroke event for field visibility in Acrobat?
It is highly recommended to use the Keystroke event for drop-down menus. This allows the script to react to the change event immediately when the user makes a selection.
Why is my getField JavaScript not hiding the target fields?
Ensure that the field name inside the getField reference exactly matches the actual field name in your PDF form. Check for case sensitivity, extra spaces, and matching punctuation.




