close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Validate Phone Numbers

Thread began 3/15/2013 9:25 am by jgroh96793 | Last modified 3/15/2013 2:47 pm by jgroh96793 | 583 views | 4 replies |

jgroh96793

Validate Phone Numbers

I have used the phone number validation in my form, but I would prefer for the validation to be 123-456-7890 instead of (123) 456-7890. How can I do that? Also, is there a way to force the correct input, i.e., they type in the first three numbers, it automatically adds the "-", then another three, auto "-", then last four numbers and not allow anything further. Can that be done as well?

John

Sign in to reply to this post

Jason ByrnesWebAssist

is you page using spry for the phone number validation?

to check this, select the phone number field in design view, if it is using spry, you will notice a blue bounding box. Click that to trigger the spry settings in the property inspector.

in the spry settings, set it to use a custom pattern, and enter:
000-000-0000

set the option to enforce the pattern.

you could also enter a hint it you like.

Sign in to reply to this post

jgroh96793

I used the CSS Forms SB to create the form.

Sign in to reply to this post

Jason ByrnesWebAssist

So it is probably using Spry validation, you will need to edit the spry validation as outlined previously.

Sign in to reply to this post

jgroh96793

Ok that worked, thank you. Just as a heads up for anyone else, I had to select the SPAN around my text field to bring up the Spry settings in the Property Inspector. It didnt come up by just selecting the text field itself.

Sign in to reply to this post

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...