Hello,
thanks for the tips on this....I am trying to get the
cf_twoselectsrelated custom tag going but cant seem to
get it to work.....I downloaded the Custom Tag into my
Custom Tag folder and the only changes/additions I
made were to the cfparam items where a default value
was not already assigned(the first 3 items). Now I
get this error:
An error occurred while evaluating the expression:
MyQuery = Evaluate("Caller.#Attributes.Query#")
An error has occurred while processing the expression:
Caller.
-------------------------------
do I need to update this custom tag in anyway...
also, my cf_twoselectsRelated code is as follows:
<CF_TwoSelectsRelated
QUERY="get_outcome"
DISPLAY1="Master_Cat"
DISPLAY2="vcodedecode"
VALUE1="icodedecodetablenameid"
VALUE2="icodedecodeid"
FORCEWIDTH1="70"
FORCEWIDTH2="70"
SIZE1="1"
SIZE2="1"
HTMLBETWEEN="<BR>"
AUTOSELECTFIRST="Yes"
EMPTYTEXT1="(choose a category)"
EMPTYTEXT2="(now choose a subcategory)"
ONCHANGE="Submit!"
FORMNAME="MyOtherForm">
I am sure I am overlooking a few things here...any
ideas?
Thanks again!!!
--- Raymond Camden <[EMAIL PROTECTED]> wrote:
> You are correct. Form.method won't be set until the
> user picks it and
> submits the form. Now, you can default form.method
> to something so that
> the second drop down will have values in it
> initially. By the way, this
> is VERY bad:
>
> <cfoutput>
> <cfif #form.method1# IS "1">
> </cfoutput>
>
> This should be:
>
> <cfif form.method is "1">
>
> Notice, no cfoutput is needed. Remember, cfoutput is
> ONLY necessary when
> you want the user to see the value of a CF variable.
> By itself, CF
> doesn't need it. Ie, you DONT do this:
>
> <cfset x = 1>
> <cfoutput>
> <cfset y = "#x#">
> </cfoutput>
> (well, that works, but is unnecessary)
>
>
> This is fine...
>
> <cfset x = 1>
> <cfset y = x>
>
>
=======================================================================
> Raymond Camden, Principal Spectra Compliance
> Engineer for Macromedia
>
> Email : [EMAIL PROTECTED]
> Yahoo IM : morpheus
>
> "My ally is the Force, and a powerful ally it is." -
> Yoda
>
> > -----Original Message-----
> > From: Amanda Stern [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 03, 2002 2:25 PM
> > To: CF-Talk
> > Subject: Simple FORM Variable ERROR?????
> >
> >
> > Hello,
> >
> > I am trying to create a simple form that depending
> on
> > which item is selected in one dropdown will
> determine
> > the contents of the next dropdown field....it
> doesnt
> > to recognize my form variable though....
> >
> > here is my code:
> >
> >
> > <td width="300">
> > *Outreach Method:<br>
> > <select name="OutreachMethod1">
> > <option value="">--Select One--</option>
> > <option value="1">Telephone</option>
> > <option value="2">Home Visit</option>
> > </select>
> > </td>
> >
> > <cfoutput>
> > <input type="hidden"
> > name="method1"
> > value="Form.OutreachMethod1">
> > </cfoutput>
> >
> >
> > <cfoutput>
> > <cfif #form.method1# IS "1">
> > </cfoutput>
> >
> >
> > So depending on which value from the
> OutreachMethod1
> > drop down they choose will determine the cfif code
> > that follows...but it doesnt recognize
> #form.method1#
> > ...do I need to have 2 forms and submit the first
> > part?
> >
> > TIA
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Send your FREE holiday greetings online!
> >
>
______________________________________________________________________
Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
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