Expand my Community achievements bar.

Auto populate a date field after signing

Avatar

Level 1

I have livecycle ES4 and would like to auto populate a document after digitally signing. I am a newbie to javascript and relatively new to LiveCycle.

1 Reply

Avatar

Level 7

If you change the document after signing, it will invalidate the signature.

By default a signature will lock all the fields, you will need to uncheck the 'Lock the fields after signing' checkbox in the properties tab to change a field.

The other option is to put your code for the date in the PreSign event for the signature object, that way you will update the field before signing but will be still valid and locked after signing.

The javascript code for entering today's date is:

this.resolveNode("DateTimeField1").rawValue = util.printd("yyyy-mm-dd", new Date());