ps2k11 Posted December 13, 2011 Share Posted December 13, 2011 If a customer creates an account the telephone number is mandatory. However if the customer puts in a blank in the telephone number it's accepted and there is no telephone number when the account is created. Is the a way to fix this problem that only numbers or dashes are allowed and no blanks ? Link to comment Share on other sites More sharing options...
ps2k11 Posted December 15, 2011 Author Share Posted December 15, 2011 I managed to solve the problem by removing the blank from return preg_match('/^[+0-9.()-]*$/', $phoneNumber); in Validate.php If I want the customer to enter numbers only how do I limit the number of characters to 10 ? maximum is 16 Link to comment Share on other sites More sharing options...
bellini13 Posted December 16, 2011 Share Posted December 16, 2011 you can update the theme template file and limit the field size to 10 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now