XF 2.1 Custom Thread field - Time validation

MichaelR

Member
I added a custom thread field named "Time (mm:ss)". I would like the users to place the time like i showed in the title: "03:59".
I don't want any other format.

Now i wanted to create a validation for this but i can't seem to find the solution if this is possible and how.
Anyone know?
 
Assuming you want 12 hours format then copy-paste ^[0-5]?[0-9]:[0-5]?[0-9]$ in custom field's regular expression match format input.
 
Last edited:
Back
Top Bottom