I have a basic form that collects user mailing address info. I am using a dropdown box for state selection. How do I setup validation so that when a user does not select a state, they get an error on submit?
Right now it lets the user roll on by without selecting a state.
Thanks...!
<!--- Code / Some states removed for this example --->
<CFSELECT NAME="ShipState" SIZE="1" REQUIRED="Yes" MESSAGE="Please select your state...">
<OPTION>Please select your state</OPTION>
<OPTION VALUE="AL">Alabama</OPTION>
<OPTION VALUE="AK">Alaska</OPTION>
<OPTION VALUE="AZ">Arizona</OPTION>
<OPTION VALUE="AR">Arkansas</OPTION>
<OPTION VALUE="CA">California</OPTION>
</CFSELECT>
Right now it lets the user roll on by without selecting a state.
Thanks...!
<!--- Code / Some states removed for this example --->
<CFSELECT NAME="ShipState" SIZE="1" REQUIRED="Yes" MESSAGE="Please select your state...">
<OPTION>Please select your state</OPTION>
<OPTION VALUE="AL">Alabama</OPTION>
<OPTION VALUE="AK">Alaska</OPTION>
<OPTION VALUE="AZ">Arizona</OPTION>
<OPTION VALUE="AR">Arkansas</OPTION>
<OPTION VALUE="CA">California</OPTION>
</CFSELECT>