<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
>
> ______________________________________________________________________


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

Reply via email to