Jeff, I've never used the selected="" attribute of <cfselect>. What I've done in the past is set the SELECTED attribute in <option>.
<option value="#column#" <cfif NOT ListFind(column, SelectedList) IS 0>SELECTED</cfif>> Not very efficient, but works.... Thanks, Joe Kelly On 6/30/05, Jeff Mayfield <[EMAIL PROTECTED]> wrote: > I am having a problem getting preselected values to work with a multiple > cfselect box. #countyID# will evaluate to a list of values which I have > verified are in the options - 972,1020,1037,1131, but none of them are > selected when the form loads. To simplify the problem I changed > selected="#countyID#" to selected="972,1020,1037,1131" and still no go. I > then added <option value="test1" selected>test1<option value="test2" > selected>test2<option value="teset3" selected>test3 and all 3 were selected. > > Is there a problem with the selected attribute of the cfselect tag with > multiple selected options? I dread having to code all the boxes manually, > especially right before a holiday where I'm trying to be as lazy as possible > :) > > <cfselect name="countyID" query="qCounty" display="name" value="countyID" > selected="#countyID#" multiple="yes" passthrough="style='height: > 100;'"></cfselect> > > > TIA, > > Jeff > > > ---------------------------------------------------------- > To post, send email to [email protected] > To unsubscribe: > http://www.dfwcfug.org/form_MemberUnsubscribe.cfm > To subscribe: > http://www.dfwcfug.org/form_MemberRegistration.cfm > > > -- Thanks, Joe Kelly ---------------------------------------------------------- To post, send email to [email protected] To unsubscribe: http://www.dfwcfug.org/form_MemberUnsubscribe.cfm To subscribe: http://www.dfwcfug.org/form_MemberRegistration.cfm
