Online Form Validation

melvin

Registered
just wanted to know if somone could help me I am trying to validate a drop down box on my form so visitors have to select one of the options in the drop down box before submitting, my site http://www.outeraspect.com/lenticularquickquote.htm and the drop down box I am referring to is the the "how did you find us" I have figured out how to validate text fields but somehow I cant apply the same to drop down boxes.

I use Dreamweaver, is there any scripts/codes for this, any help would be appreciated, cheers.
 
You can edit the HTML to have dreamweaver validate your combo box in that form.

find this

onClick="MM_validateForm('name3','','R','email','','RisEmail','address','','R','city','','R','country','','R');return document.MM_returnValue"

and replace it with this

onClick="MM_validateForm('name3','','R','email','','RisEmail','address','','R','city','','R','country','','R','How you found us','','R');return document.MM_returnValue"

Also you should change your How you found us to this

<select name="How you found us" id="How you found us">
<option value="">-- Please Choose --</option>
<option>Google
<option>Google (local)
<option>Yahoo (local)
<option>Yahoo
<option>Go.com
<option>AltaVista
<option>Excite
<option>Hotbot
<option>Lycos
<option>other
</select>

Note I added a value="" to the first item.


Finally after doing this you shouldn't edit the Validate Form behavior visually because the combo box validation will be erased.

Hope this helps,
 
Back
Top