Skip to main content
Known Participant
February 23, 2022
Answered

Setting the date to update when a submit button is used

  • February 23, 2022
  • 1 reply
  • 364 views

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 has been closed for replies.
Correct answer try67

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

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
February 23, 2022

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

John CorfAuthor
Known Participant
February 23, 2022

Excellent, thak you very much