The short answer is yes, but of course you'll need to get Acrobat to edit the PDF file.
Generically, here is what you are looking to do:
- Open the Digital Signature Properties dialog
- Select the Signed tab
- Select the This script executes when the field is signed radio button
- Click the Edit button
- Click the Close button on the Digital Signature Properties dialog
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
var signingTime = day +"/"+month+"/"+year //Modify into your preferred format
var f = this.getField("Text1"); //Modify the field name as necessary
f.value = signingTime;
How would I fix this?
Go into the properties of the field that you have the date populating in. Click the "Format" tab and select the date format category. After that you will scroll all the way down to the bottom of the box with the date formats and select "Custom". It will populate a field just below it that will allow you to write the date format as you see fit.
I was able to get the date to populate correctly! Thank you @Steven.Madwinfor the helpful information. One more thing I would like to ask of you. Now that I have the date auto populating on the form when digitally signed, how do I make the form read only at the same time it is digitally signed? I am not able to select "Mark as read-only" and "This script executes when field is signed" buttons at the same time. Is it even possible?
1 person found this helpful
Since you are digitally signing the file, as long as it's the last signature field being signed you have the option to lock the document, which effectively makes all of the form controls read-only. Select this checkbox circled below and the file will end up being read-only.