Can someone please, if possible make it clear what is the correct regExpTime that will do validation for a time field and allow client to enter any time format as is KK:MM format like 10:00, 12:00, 24:00 or 12:22, 10:23 but prevent them from entering garbage and letters.
What I have now is the following code on the exit event and
display pattern set to time{KK:MM} and edit pattern set to time{KK:MM}|time{KKMM}|time{KK MM}|time{KK-MM}|time{KK.MM.SS}|time{KK.MM}|time{KK,MM},
still my time field does not accept any time > 9:00. It will however accept 10:22, 11:29 but not 10:00 or 11:00 …etc
var vMatched = this.rawValue.match(regExpTime);
if (!vMatched){
this.rawValue
=null;
xfa.host.messageBox("Please time format - HH:MM. "
, "Message", 3, 0);
xfa.host.setFocus(
this);
}
Thank you!