Copy link to clipboard
Copied
Is there a way to add the current date and time to a text field when the user is clicking the submit form button?
I created a custom submit form button and am not using the distribute process to collect results and would like to have a time stamp of when the form was submitted.
Thanks!
Sure. Before your submit command add an Execute JavaScript command with this code:
this.getField("SubmitDate").value = util.printd("mm/dd/yyyy HH:MM", new Date());
Adjust the field name and/or date pattern as required.
Copy link to clipboard
Copied
Sure. Before your submit command add an Execute JavaScript command with this code:
this.getField("SubmitDate").value = util.printd("mm/dd/yyyy HH:MM", new Date());
Adjust the field name and/or date pattern as required.
Copy link to clipboard
Copied
Perfect Thank you!!!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now