the entire select works looks like this:
<cfset lookupOptionsArray = listtoarray("Blood,DNA,Other") />
<cfselect name="sampleType" size="1" multiple="no" style="width:200px">
<cfloop index="i" from="1" to="#arraylen(lookupOptionsArray)#">
<option value="<cfoutput>#lookupOptionsArray[i]#</cfoutput>"
id="<cfoutput>#lookupOptionsArray[i]#</cfoutput>"><cfoutput>#lookupOptionsArray[i]#
</cfoutput></option>
</cfloop>
</cfselect>
i understand that it can be done by other validation means but have lots of
drop down boxes and would much prefer to save on the code by allowing the
required="yes" and corresponding message to handle it
thanks for your help
Richard,
>
>Let me see your entire CFSELECT statement and we should be able to figure
>out how to get the empty First Option to work for you. It is entirely
>possible to do what you're trying to do.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326505
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4