Date/Time field - Have the time default to 23:59:59 instead of current time

mr_njk
Kilo Contributor

I have a requirement from the business for one of the catalogs where the default value when clicking on the date/time calendar picker should be the current date and the time should be 23:59:59. Currently, it is setting the current time as the default time.

Can anyone help with this?

5 REPLIES 5

Hi Shane

 

There is a way to build this, but I don't like it, since it has to be done with a client script.

You can grab the session details for the two user input fields when opening the "calendar form" and preset the time then. But then you need also to check whether a time has already been filled. 

 

Since we are using way too much client scripts, I decided to live with the lack of user experience and the feedback never came, so I think the users do accept it silently.

Simon