1

I tried using both and it seems they just validate the same way. And also, their validation codes are the same. Are there any difference between phoneStrict and phoneLax at all? Or you can just use either?

validate-phoneStrict Please enter a valid phone number. For example (123) 456-7890 or 123-456-7890

validate-phoneLax Please enter a valid phone number. For example (123) 456-7890 or 123-456-7890

This question applies to both M1 and M2.

1 Answer 1

1

validate-phoneStrict will accept (123) 456-7890, (123 456-7890, 123) 456-7890, 123456-7890, 123 456-7890

validate-phoneLax will NOT accept (123 456-7890, 123) 456-7890. it basically restrict the user to either use open and close both brackets or don't use any of them.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.