cf-talk  

Re: cfselect and selected option

Azadi Saryev
Wed, 09 Dec 2009 12:29:33 -0800

nope, you can't. but there's a work-around:
http://www.coldfusionjedi.com/index.cfm/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:329028
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4