cfselect has SELECTED attribute - give it a variable that holds the
value that should be selected.
i.e. if you had selectedGroupID var that held the current GroupID value,
you would use:
<cfselect ... selected="#selectedGroupID#">

for a multi-select you can provide a comma-delimited list of values that
should be pre-selected.

Azadi

On 01/04/2010 16:46, alex poyaoan wrote:
> Hi Everybody...
>
> Have this situation wherein I have to display lsit from a query on a cfselect 
> on enter mode which is OK with the cfselect listed below, but should display 
> the real value of the GroupID from the database on edit mode 
>
> <cfselect 
> query="getAll" 
> display="name" 
> value="GroupID">
> </cfselect> 
>
> thanks for any help
> alex 
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:332520
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to