you could always do this also ;)

<cfif permitted>
        <cfinput type="text" name="SomeName" value="#theOriginalValue#"
onBlur="this.value='#theOriginalValue#';">
<cfelse>
        <cfinput type="text" name="SomeName" value="#theOriginalValue#">
</cfif>

that way, if you still want to show them the value in a form element
vs. stranded next to it...you could do this.

tony

-----Original Message-----
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, November 16, 2002 6:27 PM
To: CF-Talk
Subject: Re: disabled on CFINPUT


You could always use something like this:

<cfif permitted>
  <input type="text" name="myinputname" value="#myvalue#">
<cfelse>
  #myvalue#<input type="hidden" name="myinputname" value="#myvalue#">
</cfif>


> Hi there...

> I'm attempting to display a form, based upon roles, that
> is either
> disabled or enabled.

> For a CFINPUT, "disabled" is not an option, and I'm
> wondering if there's
> any other way that this might be accomplished and produced
> the same
> desired effect--a form element, populated, but not able to
> be edited for
> the "right" access.

> Thanks,

> Russ Unger
> Managing Partner
> blueChrome design, LLC
> www.bluechromedesign.com
> <http://www.bluechromedesign.com/>
> 312.593.4260 :office
> 877.433.8427 :pager
> 312.873.4033 :fax


> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~~~~~~~~~|
> Archives:
> http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
> Subscription: http://www.houseoffusion.com/cf_lists/index.
> cfm?method=subscribe&forumid=4
> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
> Structure your ColdFusion code with Fusebox. Get the
> official book at http://www.fusionauthority.com/bkinfo.cfm


Isaac
Certified Advanced ColdFusion 5 Developer

www.turnkey.to
954-776-0046


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
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

Reply via email to