Skip to main content
Inspiring
November 29, 2020
Answered

Date field format based on digital signature date

  • November 29, 2020
  • 1 reply
  • 2205 views

I have a form with a digital signature field, which includes the following execution field when the field is signed:

this.getField("Date").value = "Digital Signature: " + util.printd("yyyymmdd", new Date());

 

The corresponding "Date" field has the format set as yyyymmdd to match above.

 

However, upon digitally signing the document I get the following Warning: JacaScript Window -

Invalid date/time: please ensure that the date/time exists. Field [Date] should match format yyyymmdd

 

The "Date" field is formatted to yyyymmdd, and it even displays a correct example of the result on the format tab, so I don't understand why the error message comes up.

This topic has been closed for replies.
Correct answer Bernd Alheit

Remove the text "Digital Signature: " or set the format to "None".

1 reply

Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
November 29, 2020

Remove the text "Digital Signature: " or set the format to "None".

Les FiestAuthor
Inspiring
November 29, 2020

Thank you!