update Date field based on signatures

Hello, I would like to ask help on the following situation:

There are several PDF documents, each with several "Digital Signature" fields. Somewhere in the document, I would like to insert a date field that will update automatically upon signing, the text field having a caption "Approved"; the idea would be, as the document is signed by all required, it will reflect the last signature's date.

Thank you in advance.


Raymond Szebin


2 Answers

Voted Best Answer

If you go to the signature field's Properties, Signed tab, you'll see an option to execute a script when the field is signed. You can put there something like this (adjust the field name, if required):

this.getField("ApprovedDate").value = "Approved: " + util.printd("mm/dd/yyyy HH:ss", new Date());

(However, I'm not sure this will actually work as you intended when used with multiple signatures in the same file. It's possible it will only work the first time a signature is placed)

.


Visit my custom-made PDF scripts website: http://try67.blogspot.com
Contact me personally: try6767@gmail.com


By Gilad D (try67)   

Gilad beat me to it :) But, I can actually verify that it will work with multiple signatures - as long as you don't lock the form when a signature is applied. You can verify this by adding a number to each "Approved" string so that you know, which signature did modify the time stamp.

Karl Heinz Kremer
PDF Acrobatics Without a Net
PDF Software Development, Training and More...
http://www.khkonsulting.com


Karl Heinz Kremer   


Please specify a reason: