By using this snippet you can validate the Telephone field in your form. If you want to validate some specific pattren like US nummber you can use this regular expression to validate the pattren
preg_match(/^[0-9]{3}-[0-9]{3}-[0-9]{4}$/)
By using this snippet you can validate the Telephone field in your form. If you want to validate some specific pattren like US nummber you can use this regular expression to validate the pattren
preg_match(/^[0-9]{3}-[0-9]{3}-[0-9]{4}$/)
Top comments (0)