This content has been marked as final.
Show 2 replies
-
1. Re: Certificate of Completion with Date Stamp
George_Johnson Aug 2, 2011 12:36 PM (in response to zei-mgilvey)Yes, it's possible, with a bit of JavaScript. You can have the date field automatically populated when the form is first opened or after they enter their name. For the latter, you could add the following script to the Validate event of the name field:
// Get a reference to the date field var f = getField("date"); if (event.value) { f.value = util.printd("mm/dd/yyyy", new Date()); } else { f.value = ""; }Replace "date" with the actual name of your date field. You can also use a different date format, but this should get you started. If you want it to populate when the document is opened, it's a bit more complicated, but post again if this is what you want.
-
2. Re: Certificate of Completion with Date Stamp
zei-mgilvey Aug 2, 2011 12:48 PM (in response to George_Johnson)This rocks! I just selected the Name field, double-clicked it, went to the Validate tab and pasted it into the Edit field for the "Run custom validation script" and blymy it works!
Thanks George


