These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Acrobat Form - Automatically recording the date and time when PDF form is saved by user

AJMitchell
Registered: Dec 7 2011
Posts: 6
Answered

I've had a look for existing topics on this but they're all more complicated than I need. Also I've limited knowledge of scripting.
 
I need a field on an Acrobat form that automatically enters the current date and time on the lower edge of each page every time the user saves changes.
 
It's for a 'Consent' sheet where people are agreeing terms - both parties will print out the the form, sign the copies and take a copy with them. The date and time will help show that both sets of papers match and were agreed at the same time.
 
Is this possible with Acrobat 9?
 
Thanks for any help you can give.

My Product Information:
Acrobat Pro 9.4.3, Macintosh
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Accepted Answer
Yes. Here's how you do it:
Create the field as you want it to appear on the first page of the document. Let's say it's called "SaveTime".
Make sure to set it as read-only.
Now right-click it with the Object Select tool and select Duplicate. Select the entire range of pages in the file.

Now to set up the code to populate these fields:
Go to Advanced, Document Processing, Set Document Actions.
Select "Document Will Save" and click Edit. Enter the following code:

getField("SaveTime").value = util.printd("dd-mm-yyyy hh:MM:ss", new Date());

(You can change the date/time format if you wish, of course)
Press OK until all windows close, and that's it!

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

AJMitchell
Registered: Dec 7 2011
Posts: 6
Brilliant! That's exactly what's required.

Thanks so much try67