How to validate a time input?
How to validate a time input?
hi,
in the table I am building, one of the fields requests from the user to set a time and I need to validate it somehow. Specifically, I want the input to have the following format: 'hh:mm' (e.g. 05:45). Does Editor include a time validator, like it does for dates? If not how can I display the same error message, i.e. the one with the red letters that appears right under the input field, when the input is not valid?
Thanks!
This question has an accepted answers - jump to answer
Answers
With the Editor PHP libraries you should be able to use the
dateFormat
validator with a customformat
:Allan
Thanks!!