Because CFINPUT is an actual CF Tag, it must not allow you to nest CF tags
inside one and other.
So you have to say:
<cfif isdefined("session.particulars")>
<cfinput type="Text" name="name" value="#session.particulars.name#">
<cfelse>
<cfinput type="text" value="#session.particulars.name#">
</cfif>
______________________________________________
Pete Freitag ([EMAIL PROTECTED])
CFDEV.COM / NETDesign Inc.
ColdFusion Developer Resources
http://www.cfdev.com/
-----Original Message-----
From: David [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 16, 2000 11:33 PM
To: CF-Talk
Subject: Dynamic Form value
Hi all,
I have tried the following and it works.
<input type="Text" name="name"
<cfif isdefined("session.particulars")>
<cfoutput>value="#session.particulars.name#"</cfoutput>
</cfif>
>
but when I can it to cfinput, I got an error.
<cfinput type="Text" name="name"
<cfif isdefined("session.particulars")>
value="#session.particulars.name#"
</cfif>
>
Is there a workaround?
Thank you and regards
David
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.