Skip to main content
Known Participant
Feb 23, 2022 1:07 PM UTC
Answered

Setting the date to update when a submit button is used

Hello,

 

I am currently having issues with setting the date on a from. I can get the form to update the date everytime the form is opened, however I would like it to update every time the submit button is used. this is the code I currently have although it doesnt do exactly what i require:

 

var fld = this.getField("Today"); fld.value = util.printd("dd/mm/yyyy",new Date());

 

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Feb 23, 2022 1:32 PM UTC

Move the code to the Mouse Up action of your Submit button...

2 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Feb 23, 2022 1:32 PM UTC

Move the code to the Mouse Up action of your Submit button...

Translate
John CorfAuthor
Known Participant
Feb 23, 2022 2:14 PM UTC

Excellent, thak you very much

Translate