PDF Editing Issues

Prevent Invalid Drop-Down Selections in an Adobe Acrobat Form

Steven ParkerSteven Parker Nov 19, 2026 868 views

Question details

Reject a drop-down selection unless a related Member checkbox is selected, restoring the previous value when the choice is invalid.

Prevent Invalid Drop-Down Selections in an Adobe Acrobat Form
Product
Adobe Acrobat PDF forms
Device & OS
not provided
Scenario
A form has a drop-down option that is permitted only when the Member checkbox is selected.
Observed behavior
An invalid drop-down choice should be rejected and the field should retain its previously committed value.
Before you start

Open the PDF in Adobe Acrobat with access to form editing. In Prepare a Form, check the checkbox field name and checked export value, as well as the drop-down option's export value.

Solution 1Recommended

Reject the invalid choice with an Acrobat validation script

Use a custom validation script to keep the previous committed drop-down value when the Member checkbox is not selected.

1
Open the drop-down properties

In Acrobat, open the PDF and choose All tools > Prepare a form. Double-click the drop-down field to open its Properties dialog.

2
Add the validation script

On the Validate tab, select Run custom validation script and click Edit. Enter: if (this.getField("Member").value !== "Yes" && event.value === "Invalid Choice") { event.rc = false; }

3
Match the form values

In the script editor, replace Member with the checkbox field name, Yes with its checked export value, and Invalid Choice with the drop-down option's export value. Save the script and close Properties.

4
Test the selection

On the drop-down field's Options tab, enable Commit selected value immediately if you want validation to run as soon as the selection changes. Close form editing, leave Member unchecked, and select the restricted option; then check Member and try again.

Reject the invalid choice with an Acrobat validation script
Validation timing: Without immediate commitment, validation generally runs when the field value is committed, such as when the user leaves the field. Changing the checkbox afterward does not automatically revalidate an existing drop-down choice.
Free Microsoft Office alternative

Work with PDFs and Office files in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for working with PDFs and Office documents. Its format support makes it easy to bring existing files into your workflow, although it does not replace Acrobat's form validation scripting.

Open and work with PDF forms alongside your other documents.Compatible with Microsoft Office formats including DOCX and XLSX.Familiar editing interface helps make the move from Office easier.Free, lightweight tools for everyday document work.
microsoft office alternative - wps office

Frequently Asked Questions

How does the script restore the previous drop-down value?

Setting event.rc to false in the drop-down field's custom validation script rejects the new value, so the previously committed value remains.

How do I find the checkbox's checked value?

In Prepare a Form, double-click the checkbox and check its Options tab for the export value. Use that value in place of Yes in the script.

Why doesn't validation happen as soon as I select an option?

Open the drop-down field's Properties, go to Options, and enable Commit selected value immediately. Otherwise, validation generally runs when the value is committed, such as when you leave the field.

What happens if I uncheck Member after choosing the restricted option?

The drop-down validation script does not automatically run when the checkbox changes. Additional form logic is needed if the existing selection must also be cleared or rejected in that case.