Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Auto populate a date field after signing

Level 1
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.

0 Replies
Level 7
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());