PDF Editing Issues

Lock PDF Form Fields and Add a Signature Date in Adobe Acrobat

Aamir Naveed AkramAamir Naveed Akram Nov 18, 2026 868 views

Question details

The user wants a PDF form to fill a Date Signed field automatically and lock selected fields when the form is signed.

Lock PDF Form Fields and Add a Signature Date in Adobe Acrobat
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.
Before you start

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.

Solution 1Recommended

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.

1
Open signature properties

In Acrobat Pro, choose All tools > Prepare a form, then double-click the digital signature field to open its properties.

2
Add the date script

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.

3
Choose fields to lock

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.

4
Save and test

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 in a signature action and configure field locking
Check signature validity: If the date is not populated or the signature reports a change after signing, do not rely on this sequence. Use a pre-signing date action instead and test again in the intended viewer.
Free Microsoft Office alternative

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.

Open and work with PDF documents alongside other office filesCompatible with Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTXFamiliar interface for a smoother transition from Microsoft OfficeFree, lightweight suite for everyday document tasks
microsoft office alternative - wps office

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.