be cause you are putting it inside the quotes so it thinks it's a literal string?? shouldn't it be(i think, please check) <cfinput type="text" name="myFormElement" value=<cfif isDefined("this.Value")>"#this.Value#"<cfelse>""</cfif>>
-----Original Message----- From: Dimple Goshar [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 8:01 AM To: CF-Talk Subject: RE: CFFORM and CFIF Part II what is the error that you r getting on the browser? > -----Original Message----- > From: Jaye Morris [SMTP:[EMAIL PROTECTED]] > Sent: Friday, April 26, 2002 6:18 PM > To: CF-Talk > Subject: Re: CFFORM and CFIF Part II > > <head> > Why cant I use cfif inside of a cfinput tag? > </head> > > <cfset this.Value="I know i cant use this."> > > <cfform method="post" action="nocfif.cfm"> > <!--- it will not work like this ---> > <cfinput type="text" name="myFormElement" value="<cfif > isDefined("this.Value")>#this.Value#</cfif>"> > <!--- or like this ---> > <cfinput type="text" name="myFormElement" value="<cfif > isDefined("this.Value")>#this.Value#</cfif>"> > > <!--- the only work around is this ---> > <cfif isDefined("this.Value")> > <cfinput type="text" name="myFormElement" value="#this.Value#"> > <cfelse> > <cfinput type="text" name="myFormElement" value=""> > </cfif> > > </cfform> > > I can use the CFIF outside of the CFFORM but not inside the CFFORM. Am I > missing something here? Any suggestions would be most appreciated. > > jaye morris > [EMAIL PROTECTED] > > > > > > Date: Thu, 25 Apr 2002 14:37:45 -0400 > > From: Critz <[EMAIL PROTECTED]> > > Subject: Re[2]: CFIF and CFFORM Tags > > Message-ID: <[EMAIL PROTECTED]> > > > > oi Jaye!! > > > > yes it's possible. what errors are you receiving? > > > > > > -- > > Critz > > Certified Adv. ColdFusion Developer > > > > Crit[s2k] - <CF_ChannelOP Network="Efnet" Channel="ColdFusion"> > > ------------------------------------ > > Thursday, April 25, 2002, 2:36:18 PM, you wrote: > > > > JM> I have been having problems using CFIF in the CFFORM tag. is this > not > > JM> possible? > > > > JM> Regards > > > > JM> jaye morris > > JM> [EMAIL PROTECTED] > > > > JM> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq > > JM> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > > JM> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists > > > > ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm 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