Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I make a drop-down a required field?

Status
Not open for further replies.

nsukari

Technical User
Jul 17, 2002
26
US
I'm using cold fusion for an update form. There are three choices for a drop-down box. I want to make it required to pick one of these choices and then, depending on which drop-down choice is made, I want to make certain text boxes required. 1st, can I make the drop-down required? 2nd, if that's possible, can I use the CFIF to say if "A" is selected (in the drop-down box), then this field is required, if not, this field is not required.
Please help. If I can do this, it would save me a lot of hassle.

Thanks, Teri
 
<cfform>
<CFSELECT REQUIRED=&quot;YES&quot; Message=&quot;Select a Value&quot;>
<option onChange=&quot;Makerequired();&quot;>Option 1</option>
</CFSELECT>
</cfform>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top