MoonworksMedia Posted July 17, 2016 Share Posted July 17, 2016 (edited) I have a custom field which needs to be a amount of time shown like this: 37:56 The maximum to go in there would be 45:00 I'm think the best way to do this would be to use the regular expression validation string, but am not sure what I need to put in there. Edited July 17, 2016 by MoonworksMedia 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 17, 2016 Share Posted July 17, 2016 if you could drop a second from your maximum, you could use... /^(2[0-4]|[0-3][0-9]|[4][0-4]):[0-5][0-9]$/ that would consider any time between 00:00 and 44:59 (entered as xx:xx) as valid. 0 Quote Link to comment Share on other sites More sharing options...
MoonworksMedia Posted July 17, 2016 Author Share Posted July 17, 2016 Thank you, that's just saved my hair from being pulled out 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.