Lock PDF Form Fields and Add a Signature Date in Adobe Acrobat
Question details
The user wants a PDF form to fill a Date Signed field automatically and lock selected fields when the form is signed.

- Product
- Adobe Acrobat PDF forms
- Device & OS
- not provided
- Scenario
- A form combines an existing date automation script with field locking after a digital signature.
- Observed behavior
- Date automation and field locking have worked separately, but the user needs them to work together in the signing sequence.
In Acrobat Pro, open the form in Prepare a Form and confirm the exact names of the signature, date, and other fields to be locked. Ensure JavaScript is enabled in the Acrobat or Reader settings used for testing.
Set the date in a signature action and configure field locking
Use the signature field's settings to run a date script and lock selected fields when the user signs.
Signature-action timing and permitted changes can depend on the PDF viewer and its security settings. Test the completed form to confirm that the date is saved and the signature remains valid.
In Acrobat Pro, choose All tools > Prepare a form, then double-click the digital signature field to open its properties.
On the Signed tab, find the option to run a script when the field is signed and click Edit. Enter: this.getField("Date Signed").value = util.printd("mm/dd/yyyy", new Date()); Replace Date Signed with the exact name of your date field.
On the same Signed tab, select Mark as read-only and choose the fields to lock after signing. Include the date field if it should no longer be editable.
Save the form, open a test copy in Acrobat Pro and Acrobat Reader, fill it out, and sign it. Check the date, try editing the locked fields, and inspect the signature status.

Set the date before signing, then lock the fields
Use a form button to set the date before the signature is applied if the signature action does not work reliably.
Work with PDF and Office files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with PDF and Office files. Its format compatibility makes it easier to move existing documents into WPS, although it does not configure Acrobat signature actions or field-locking scripts.

Frequently Asked Questions
How do I make a PDF form field read-only with JavaScript?
In an Acrobat form script, use this.getField("FieldName").readonly = true; and replace FieldName with the exact field name. For locking fields after signing, also check the signature field's Signed tab in Prepare a form.
Why is the Date Signed field still blank?
Check the field name in Prepare a form and confirm that JavaScript is enabled in the viewer. Then test the signature action in Acrobat Pro and Reader; if it does not run reliably, set the date with a button before signing.
Can I lock only certain fields after signing?
Yes. In Acrobat Pro, open the signature field's properties in Prepare a form, select the Signed tab, and use Mark as read-only to choose the fields to lock.
Can adding the date affect the digital signature?
A change made after signing can affect signature validity, depending on the document and permitted changes. Test the signed file's status in Acrobat or Reader; if necessary, set the date before applying the signature.




