Dreamweaver Spry Validation Phone Number

Posted on 2012-08-14
Last Modified: 2013-12-13
I've created a form to update a customer record using Dreamweaver and ColdFusion.

When the customer logs on, they are presented with a screen pre-populated with their personal information, such as address and phone number.

I've set the phone number field up using spry validaiton in US/Canada format (000) 000-0000.

If the field is empty, and the customer starts typing in it, it automatically applies the correct formating.

The problem is, if the record came up pre-populated with a phone number - if they click in the box, it automatically apends a "(" to the right of the text and marks it "invalid format".
Question by:GMC02108
    1 Comment
    LVL 70

    Accepted Solution

    This is a problem with Spry and Adobe has never resolved it.  I would suggest you switch to the Validation plugin for JQuery to get better functionality:

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
    Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
    Viewers will learn how to use the Hootsuite Dashboard.
    The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now