cf-talk  

Re: cfselect and selected option

Larry Lyons
Wed, 09 Dec 2009 17:23:41 -0800

thanks Azadi, I'll give that a try.

larry

> nope, you can't. but there's a work-around:
> http://www.coldfusionjedi.com/index.
c> fm/2007/8/7/Selecting-default-items-using-ColdFusion-8s-AJAX-Controls
> http://cfsilence.com/blog/client/index.
cfm/2007> /8/7/Selecting-Multiple-Default-Items-With-ColdFusion-8-Ajax-Controls
> 
> Azadi Saryev
> 
> 
> 
> On 10/12/2009 01:11, Larry Lyons wrote:
> > Greetings all,
> >
> > A quick question, can you use the selected option in a cfselect when 
> you're using a bind, as in:
> >
> > <!--- OfficeID is coming from another drop down select --->
> >
> > <cfselect name="office" id="office"
> >    bind="cfc:cfcs.myCFC.getDivsionsByOffice({officeId})"
> >    size="1"
> >    value="divID"
> >    display="division_abbrev"
> >    selected="#someOtherQuery.divID#"
> > />
> >
> > many thanks,
> > larry
> >
> >
> >
> > 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:329033
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4