Skip to main content
Known Participant
February 23, 2022
Resuelto

Setting the date to update when a submit button is used

  • February 23, 2022
  • 2 respuestas
  • 375 visualizaciones

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());

 

Este tema ha sido cerrado para respuestas.
Mejor respuesta de try67

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

2 respuestas

try67
Community Expert
try67Community ExpertRespuesta
Community Expert
February 23, 2022

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

Known Participant
February 23, 2022

Excellent, thak you very much