Note the initial empty <option>. Also, note that you only need 1 set of
enclosing <cfoutput> tags.
<cfset lookupOptionsArray = listtoarray("Blood,DNA,Other") />
<cfselect name="sampleType" size="1" multiple="no" style="width:200px"
required="yes" message="Please select a Sample Type to continue.">
<option value=""></option>
<cfoutput>
<cfloop index="i" from="1" to="#arraylen(lookupOptionsArray)#">
<option
value="#lookupOptionsArray[i]#">#lookupOptionsArray[i]#</option>
</cfloop>
</cfoutput>
</cfselect>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:326506
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4