On any "preSave" event...
/*DATE_0*/var dtStamp = util.printd("yyyy/mm/dd HH:mm:ss", new Date());
app.alert(" >> ABC " + dtStamp);
Off to a great start. When I use this script a pop up box appears displaying the current date. How would I instead get this date to show in a locked field on the form itself?
Not app.alert I'm guessing.
Also is this preSave event going to be triggered when this form is downloaded from an email client and saved to someplace on a users computer?
Got it to work with:
"this .rawValue="Last Saved: "+dtStamp;"
"this" being the text box I wanted the date displayed in.
And to answer my other question about downloading from a web client. the presave event is not triggered so I think this will work great to see what time the form was last saved. Thanks for the help.
So just a little formatting question. The current format is "m/dd h:MM" and I would like to add the abbreviated day of the week to the beggining and AM/PM to the end.
I tried: "EEE, m/dd h:MM A" But the EEE and A just appear as EEE and A. Any ideas? Thanks