How do I auto populate a date field when a document gets signed using LiveCycle ES2?

Avatar

Avatar
Level 1
lightsaber35
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
lightsaber35
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
lightsaber35
Level 1

20-06-2013

How do I auto populate a date field when a document gets digitally signed using LiveCycle ES2?  I have a form that has multiple signature fields and date fields.  I want to have the date field populate when a person signs that document.  That date will need to stay the same when the next person signs it.  For example, person A signs the document on 20 Jun and sends it to person B.  That person signs it on 22 Jun.  I want the dates to stay the same when a new person opens the form to sign it.  Thanks.

Accepted Solutions (0)

Answers (5)

Answers (5)

Avatar

Avatar
Level 1
leebroox
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
leebroox
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
leebroox
Level 1

03-03-2021

I would recommend using Varun's script below but for US users change the date format to "mm.dd.yyyy" or whichever you prefer.  Also if you want certain fields to be locked after your user signs the form I suggest using a PreSign event instead of a PostSign.  Create and Modify a collections list with the particular fields to lock and apply it in your "Object-signature" tab. This will populate the date code and then lock it preventing a change. Below is the same is Varun's script but applied to my form.

 

topmostSubform.Page2.PMDate.rawValue = util.printd("mm.dd.yyyy", new Date())

Avatar

Avatar
Validate 1
Level 1
Akyron
Level 1

Likes

0 likes

Total Posts

35 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
Akyron
Level 1

Likes

0 likes

Total Posts

35 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
Akyron
Level 1

20-08-2013

Thank you

Avatar

Avatar
Boost 3
Level 2
Varun_Nohria
Level 2

Likes

4 likes

Total Posts

48 posts

Correct reply

2 solutions
Top badges earned
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Boost 3
Level 2
Varun_Nohria
Level 2

Likes

4 likes

Total Posts

48 posts

Correct reply

2 solutions
Top badges earned
Boost 3
Boost 1
Affirm 1
View profile
Varun_Nohria
Level 2

16-08-2013

You can use below script in the post Sign event:

xfa.form.form1.Page1.DateTimeField1.rawValue =  util.printd("dd.mm.yyyy", new Date());

Avatar

Avatar
Validate 1
Level 1
Akyron
Level 1

Likes

0 likes

Total Posts

35 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
Akyron
Level 1

Likes

0 likes

Total Posts

35 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
Akyron
Level 1

13-08-2013

Example?

Avatar

Avatar
Boost 3
Level 2
Varun_Nohria
Level 2

Likes

4 likes

Total Posts

48 posts

Correct reply

2 solutions
Top badges earned
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Boost 3
Level 2
Varun_Nohria
Level 2

Likes

4 likes

Total Posts

48 posts

Correct reply

2 solutions
Top badges earned
Boost 3
Boost 1
Affirm 1
View profile
Varun_Nohria
Level 2

11-08-2013

This can be achieved by adding a 'postSign' Event Java script on the signature Field.

In the java script, you can get the current System time and then populate the Date Field object.

Hope this helps.

Regards,

Varun Nohria