Aaron,

Which version of the tag are you using?  The version I have doesn't support
the Default1 & 2 attributes.  Can you point me to a link where I can
download the tag you are using?


Best regards,

Dennis Powers
UXB Internet
(203)879-2844
http://www.uxbinfo.com/

-----Original Message-----
From: Aaron Rouse [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 8:06 AM
To: CF-Talk
Subject: Re: CF Two Selected TAG

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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to