Hi
I want to be able to toggle disabled in my form fields. 
I have this code
<cfif do IS "view">
<cfset form_editable = "disabled">
<cfelse>
<cfset form_editable = "">
</cfif> 
Then
<cfinput id="addr" name="addr" type="text" value="#addr#" #form_editable# />
but it errors on the #form_editable#
Is there anyway I can have either disabled or nothing in a cfinput field (the 
code does work if I don't use cfinput just input, but I want the error checking 
with cfinput
Many thanks
Seamus

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349739
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to