How to Make a PDF Checkbox Conditionally Required in Acrobat
Question details
The user needs to implement conditional logic in a PDF form where deselecting one checkbox automatically makes a corresponding checkbox required, while using separate digital signatures to lock specific columns.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating advanced interactive PDF forms that require dependent fields and section-based signature restrictions for accurate data collection.
- Observed behavior
- The user wants to enforce a validation rule where Event 2's checkbox becomes mandatory if Event 1's checkbox is unchecked, and restrict editing via targeted signature fields.
Ensure you have a PDF editor that supports form scripting, such as Adobe Acrobat Pro, and note the exact field names of the checkboxes you intend to link.
Implement Conditional Logic Using Acrobat JavaScript
Use custom JavaScript on the first checkbox to dynamically change the required status of the second checkbox based on its selection state.
Because PDF forms do not have native conditional required settings built into the standard UI, you must use Acrobat's JavaScript API to link the behaviors of the two checkboxes.
Open your PDF document in Adobe Acrobat Pro and select 'Prepare Form' from the tools menu to enter editing mode.
Right-click the Event 1 checkbox, select 'Properties', and verify its exact Name and Export Value (usually 'Yes' or 'On').
Navigate to the 'Actions' tab. Choose 'Mouse Up' as the Select Trigger, and 'Run a JavaScript' as the Select Action. Click the 'Add' button.
In the JavaScript editor, enter the code to evaluate the fields. For example: var cb1 = this.getField('Event1'); var cb2 = this.getField('Event2'); cb2.required = (cb1.value == 'Off');
Click 'OK' to close the editor, then close the properties window. Preview the form to ensure checking and unchecking Event 1 successfully updates the required status of Event 2.

Lock Specific Form Fields Using Digital Signatures
Configure your digital signature fields to securely lock only the checkboxes in their respective event columns once the document is signed.
Edit and Fill Interactive PDF Forms with WPS Office
WPS PDF provides a comprehensive set of tools for creating, editing, and interacting with PDF forms. Easily manage checkboxes, text fields, and digital signatures without complex setups.
- 1. Open PDF in WPS: Launch WPS Office and open your interactive PDF document using the built-in WPS PDF editor.
- 2. Access Form Tools: Navigate to the 'Form' tab on the top ribbon to view all interactive elements like checkboxes and text fields.
- 3. Edit Form Properties: Double-click any form field to adjust its properties, set it as required, or modify its export values.
- 4. Sign and Protect: Use the 'Protect' or 'Fill & Sign' tab to add digital signatures and restrict further editing to specific sections of your document.

Frequently Asked Questions
Why is my Acrobat JavaScript not running when the checkbox is clicked?
JavaScript on checkboxes typically requires the trigger to be set to 'Mouse Up' rather than 'Mouse Down' or 'On Blur'. This ensures the checkbox value has fully updated before the script evaluates.
Can I make a PDF field required without using JavaScript?
Yes, you can manually set a field as required by checking the 'Required' box under the 'General' tab in its Properties. However, making a field conditionally required based on another field's status always requires custom JavaScript.
What happens if a user tries to submit a form with a missing required field?
If a field's 'required' property is active (either manually or via JavaScript), Acrobat will display a warning prompt and prevent form submission or finalizing until the mandatory field is filled.
How do I find the correct export value of my PDF checkbox?
Right-click the checkbox in 'Prepare Form' mode, select 'Properties', and navigate to the 'Options' tab. The 'Export Value' is listed there and is usually set to 'Yes' or 'On' by default.




