Auto populate a date field after signing

Avatar

Avatar

jayek63371735

Avatar

jayek63371735

jayek63371735

05-01-2018

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

MinusZero

Avatar

MinusZero

MinusZero

07-01-2018

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());