cornerstone
cornerstone copied to clipboard
feat(bctheme): BCTHEME-38 Cornerstone - Add Client Validation for Pho…
…ne Number on Account Creation/Edit Pages
What?
The new validation confirms that after removing -"_()/:#.,'*\s user input will match with E164 phone number standard, but with at least 3 numbers
Tickets / Documentation
https://jira.bigcommerce.com/browse/BCTHEME-38
Screenshots (if appropriate)


ping @junedkazi @yurytut1993 @bc-alexsaiannyi @golcinho
Autotagging @bigcommerce/storefront-team @davidchin
Pattern attribute of html5 tag isn't available to validate complex logic, I have investigated this question and found that the only way to let validation works in different countries to create custom regexp logic. Lmk if there is a workaround, I will be glad to have a look on it
I think this will cause issues as we have some merchants who use this field to store non phone numbers. I would talk to Derrek Pearson and see if he remembers. The last time we did this on customers team it had to be rolled back as people had saved data that broke checkout.
@aleachjr what is current status for this issue?