With the Default1 and Default2 attributes. I used to use the following for it and never ran into a problem.
<cfif Variables.CauseType1 GT 0> <CF_TwoSelectsRelated Name1="CauseType1" Name2="SubCause1" Query="qryGetCauseType" Value1="CauseTypeID" Value2="SubCauseID" Display1="CauseType" Display2="SubCause" Default1="#Variables.CauseType1#" Default2="#Variables.SubCause1#" WIDTH1="150px" WIDTH2="150px" ExtraOptions2="1" HTMLBETWEEN="<br>"> <cfelse> <CF_TwoSelectsRelated Name1="CauseType1" Name2="SubCause1" Query="qryGetCauseType" Value1="CauseTypeID" Value2="SubCauseID" Display1="CauseType" Display2="SubCause" Default1="#Variables.CauseType1#" Default2="#Variables.SubCause1#" EMPTYTEXT1=" " WIDTH1="200px" WIDTH2="200px" ExtraOptions2="1" HTMLBETWEEN="<br>"> </cfif> I set the variables at the top of my page in a switch/case, the default values for when the form is in "input" mode are the following: CauseType1 = ""; SubCause1 = ""; CauseType2 = ""; SubCause2 = ""; Then if it is in "error" or "edit" modes, I set them to equal whichever ID's I need them to be. Snipe - <CF_BotMaster Network="EFNet" Channel="ColdFusion"> On Thu, 4 Oct 2001, David Boyd wrote: > Hi, > > Does anyone know how to preselect values using the CF two selected tag? > > > Cheers. > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists