Format phone field
Is there an easy way to have the phone number entered on the form automatically change to format (xxx) xxx-xxxx upon pressing the tab key?
Is there an easy way to have the phone number entered on the form automatically change to format (xxx) xxx-xxxx upon pressing the tab key?
Use the Client Validation behavior phone validation onBlur. It has reformatting options.
I applied client validation, but I couldn't find an 'on blur' option, so it only changes it if there's an error somewhere else and it reverts back to the form. Could it be that the on blur option is on the Spry Validations?
sounds like you are adding the client side validation to the form tags on submit action.
to apply the validation to the onBulr event:
Select the phone number form field in design view.
Open the Behaviors panel (Window -> Behavior), click the plus button and select Validation Toolkit -> Apply Client Validations -> Phone number.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.