close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Validating the Phone Number with an Extension

Thread began 3/30/2009 2:30 am by webmaster359615 | Last modified 3/30/2009 8:15 am by Ray Borduin | 2056 views | 1 replies |

webmaster359615

Validating the Phone Number with an Extension

I have been working on customizing the users_Registration.php form. While not easy (there are a lot of things to adjust with every change), I have been successful with most of it so far.

One thing I have had difficulty with is customizing the Phone Number field so it takes an Extension.

Does anyone know of adjustments to the pattern or other coding that would accomplish this?

I also noticed that, with the default settings, a user could type in an Extension, and as long as it did not go over the maxChars setting, it would get a green light on blur. But on submit, it would receive an red server error.

Sign in to reply to this post

Ray BorduinWebAssist

This means that your spry client validation is not failing, but your server validation is. Since they do not directly correlate, sometimes something can pass client validation and fail on the server.

To fix the problem you would probably update the code on top of the page and change the server validation from phone number, which is very strict, to something like entry length or alphanumeric, or even regular expression pattern validation which can be made more flexible to meet your specific needs.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...