I am working on a client website and they ship to US as well as International. They require the customer phone number when they place an order and want to use phone number validation. I'm aware this is built into validatoin.js by default. The problem is there are only 2 phone number validation options. Validate PhoneLAX and Validate PhoneStrict. Both of those work great if you are using a US phone number, but will tell you that international phone numbers are not real.
I've spent countless hours searching for an expression that will allow me to validate both US and International phone numbers in this field with no luck. Any help would be greatly appreciated.
Let me suggest a way to modify your validation.js in this manner which can help you out:
Add your new class and write login into this for the International and US phone number.
I tried that but my expressions didn't quite work. I kept getting the validation error when I used either an international phone number OR a US number. I used this expression: