RESOLVED: Phone Number Validation

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
vhemlani
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 30
Joined: Wed May 25, 2011 7:58 pm

RESOLVED: Phone Number Validation

Post by vhemlani » Thu Aug 04, 2011 2:55 pm

It seems like customers are allowed to enter just about any set of numbers in the phone number field.

Is there a feature that enables some sort of phone number validation somewhere in ablecommerce? If not, is there an easy fix to creating a solution for this?

Thanks,
Vishal
Last edited by vhemlani on Fri Aug 12, 2011 4:00 pm, edited 1 time in total.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Phone Number Validation

Post by jmestep » Fri Aug 05, 2011 6:58 am

I believe the .net Regex has a phone # validator, or you could create your own.
http://msdn.microsoft.com/en-us/library/ff650303.aspx
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

vhemlani
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 30
Joined: Wed May 25, 2011 7:58 pm

RESOLVED: Phone Number Validation

Post by vhemlani » Fri Aug 12, 2011 3:59 pm

That helped.

I used the control to validate the phone number. It puts a message on the page when the phone number doesn't pass the validation. The customer is still allowed to proceed to the next steps of the checkout process even if the phone number doesn't pass the validation.

Thank you jmestep.

Post Reply