I've got a signature field called "sgnPOC" and a date field called "sgnPOCDate" I'd like to have the date field filled in automatically when the sgnPOC is digitally signed.
I added the following to the postSign* event to sgnPOC.
FORM.Main.sgnPOCDate.rawValue = util.printd("mm/dd/yyyy", new Date());
and different variations including setting the date to yyyymmdd and like. It just won't auto populate. It passes the script check in the script editor.
Solved! Go to Solution.
I suggest you to use Formcalc for this which it is more convenient to use this language for dates when using Livecycle..
var myDate = date()
$.rawValue = Num2Date(myDate, "YYYY-MM-DD")