How to Make a PDF Date Field Editable After Form Reset in Acrobat
Question details
The user needs to make a PDF date field editable again after it remains locked (read-only) following a form reset operation.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- A date field is dynamically set to read-only by a dropdown validation script. When the user resets the form, the field remains locked instead of reverting to its original editable state.
- Observed behavior
- The date field stays read-only after a form reset because resetting the form only clears the inputted field values, but does not revert altered field properties.
Ensure you have access to edit the PDF form in Prepare Form mode and have the exact field name of the locked date field ready.
Add a JavaScript Action to the Reset Button
Attach a specific JavaScript command to your Reset button to explicitly change the read-only property of the date field back to editable.
A standard form reset clears input values but ignores structural properties like read-only status modified by scripts. To resolve this, you must explicitly code the reset button to restore the property.
If your dropdown script runs again during the reset sequence, it might immediately lock the field again. Ensure your property change script runs after the reset operation is fully completed.
Open your PDF in Acrobat, go to the Tools menu, and select 'Prepare Form'.
Right-click on the Reset button in your form and select 'Properties' from the context menu.
Navigate to the 'Actions' tab. In the 'Select Action' dropdown menu, choose 'Run a JavaScript' and click the 'Add' button.
In the JavaScript Editor, enter the code: this.getField("prod.date").readonly = false; (replace 'prod.date' with the actual name of your date field) and click OK.
Ensure this JavaScript action is placed below the standard 'Reset a form' action in the Actions list so it applies after values are cleared.

Create and Manage Interactive PDF Forms Easily with WPS Office
WPS Office offers a comprehensive PDF editor that allows you to easily create, edit, and fill interactive PDF forms, avoiding the steep learning curve of complex JavaScript configurations.
- 1. Open WPS Office: Launch WPS Office on your computer and select the 'PDF' module from the home screen.
- 2. Load your PDF Form: Click 'Open' to import your existing PDF form or start from a blank document.
- 3. Navigate to the Form Tab: Click on the 'Form' tab on the top ribbon to access the interactive form controls.
- 4. Add or Edit Fields: Select the date field or text box tools to insert new fields, and double-click any field to easily adjust its properties.
- 5. Save your PDF: Once your form is configured correctly, click 'Save' to ensure all interactive elements function properly for your users.

Frequently Asked Questions
Why doesn't the standard form reset clear the read-only status automatically?
The standard 'Reset a form' action in PDF software only clears the data values that users have inputted. It is not designed to revert structural field properties, such as visibility or read-only status, that have been modified dynamically by custom JavaScript.
How can I find the exact name of my date field for the JavaScript?
While in 'Prepare Form' mode, double-click the date field to open its Properties dialog box. The exact field name will be displayed at the top of the 'General' tab. You must use this exact string in your JavaScript.
What if my dropdown validation script keeps overriding the reset script?
Check the execution order in the Actions tab of your Reset button. The script setting the 'readonly' property to 'false' must run after the form reset operation. You may also need to update the dropdown's validation script to explicitly unlock the field when the dropdown value is empty.




