cancel
Showing results for 
Search instead for 
Did you mean: 

Phone Number Validation Expression for US and International Numbers

Phone Number Validation Expression for US and International Numbers

Hello,

 

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. 

 

Thanks!

 

Chris

1 REPLY

Re: Phone Number Validation Expression for US and International Numbers

I've also just realized I posted this in the wrong forum thread. This question is for Magento 1.92. I re posted my question in the correct forum but just an't seem to figure out how to delete this one.