Skip to main content
Participating Frequently
February 6, 2019
Question

Auto populate date/time when text entered into another field.

  • February 6, 2019
  • 1 reply
  • 389 views

Thanks for helping out. I am in over my head with this project and any help is greatly appreciated.

I'm looking to auto enter a date and time into a field when text is entered into an adjacent text field. This will be used for logging data as events happen on an emergency response scene.

The format for the date and time is ddmmmyy HHMM

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
February 7, 2019

As the custom validation script of the second field enter the following code:

this.getField("DateTime1").value = util.printd("ddmmyy HHMM", new Date());

(replace "DateTime1" with the actual field name, of course)

Participating Frequently
February 7, 2019

So much yes!

Thanks a ton.