Contact Form Validation in Dreamweaver

Posted April 17th, 2010 by

In Dreamweaver there is a very simple and easy way to apply form field validation and in this article I will so you exactly how to achieve this.

Helpful Links


Step 1: Create the form with your required fields.

This is a simple html form which I am going to use for validation.
contactForm Contact Form Validation in Dreamweaver

Step 2: Apply the validation to the form elements

When your form will be ready then go on Window Menu and select Behaviors from there. A window will be appear on your side panel there will be some other tabs like "Attributes", "Tags" and "Behaviors". Now select the Submit Button and click on "+" sign under the Behaviors tab. A window of behaviors will be open and you will find different behaviours which you can use for different tasks. Select "Validate Form" now.
behaviour Contact Form Validation in Dreamweaver

Step 3: Select required validations for fields

This dialog will be open when you will select Validate Form behavior. Here you will see all text fields which you have used in contact form. Now select one by one field for validation and apply checks from under the "Fields" area. Here you will find following checks.

  1. Value Required: Check this if you want user must enter this field
  2. Accept: Here you will see different radio buttons with captions
    • Anything: User can enter anything.
    • Number: Only numbers will be entering.
    • Email address: This check will be for email validation
    • Number from: You can specify range of numbers.

behaviour window Contact Form Validation in Dreamweaver

Step 4: Test applied validation

After you have applied the Validation that you require, Save the Document and test it by not entering in anything into the fields. You should get a pop up box like this.
error window Contact Form Validation in Dreamweaver

There we have it, you can now apply form validation to your Contact Forms.

Buy private domain registration here



Random Posts

Hello there! If you are new here, you might want to subscribe to the RSS feed for updates on this topic, or follow us on Twitter. Get promotion with Hypesol.
Name: Email:
13 ResponsesLeave a comment
  • designfollow
    April 17, 2010 at 4:18 pm
    Reply

    great, thank you very much.

  • dental hygienist
    April 18, 2010 at 7:23 pm
    Reply

    This is such a great resource that you are providing and you give it away for free. I enjoy seeing websites that understand the value of providing a prime resource for free. I truly loved reading your post. Thanks!

  • veterinary technician
    April 19, 2010 at 5:29 pm
    Reply

    Keep posting stuff like this i really like it

  • Tutorial Lounge
    April 20, 2010 at 12:02 pm
    Reply

    really useful and amazingly short training.

  • pharmacy technician careers
    April 25, 2010 at 10:59 pm
    Reply

    nice post. thanks.

  • Required: Name
    May 5, 2010 at 4:10 am
    Reply

    Nice information, I really appreciate the way you presented.Thanks for sharing..

  • veterinary technician
    May 14, 2010 at 7:52 pm
    Reply

    nice post. thanks.

  • WP Themes
    July 25, 2010 at 10:18 pm
    Reply

    Good post and this mail helped me alot in my college assignement. Thanks you for your information.

  • Susanta Das
    August 25, 2010 at 2:36 am
    Reply

    I want to know that how we use more than one submit Email address in Form submit button. Like cc and bcc field.

  • Jason
    September 12, 2010 at 5:35 am
    Reply

    I’ve done that, but if I leave more than one field blank, I get an alert box for each one which is very frustrating – can this be done on just one alert box..?? CS3

  • orely01fr
    September 27, 2010 at 1:03 pm
    Reply

    thanks thats great! however, how can i do to add an automatic response or THANK YOU after submission?

  • wesley
    September 29, 2010 at 1:36 pm
    Reply

    Wow. Thanks. That was very helpful. I’ve been trying to validate my forms for a while with little success. Much appreciated.

Add a commentGet a Gravatar

* Name

* Email Address

Website Address

You can usethese tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



  •  
  •  
  •  
Around The Site
Free Subscription

Enter your email address:

 
Become Facebook Fan
Links
Get Adobe Flash playerPlugin by wpburn.com wordpress themes