I'm working on a form where I need to check if the user has entered a time outside of a certain range (as an example, let's use 12:00 PM - 10:00 PM). I have this sort of working using invalidate rules but the validation doesn't update until the user either selects/enters a date or tries to submit the form. So if a user changes the time from 12:00 AM to 3:00 PM, the form would still say that the time was out of range until the user changes the date or clicks save/submit. Is this normal?
In trying to deal with this, I thought maybe a regular expression validation on the control would be more effective/responsive, but I haven't been able to figure out a valid regular expression. Does anyone know what format the date is in when comparing to a regular expression from the DateTime control's "Use a regular expression" validation option? I've tried the format MM/dd/yyyy hhss tt (11/28/2021 10:30:00 AM), but it doesn't seem to work even without trying to check for specific values in hours/minutes.