all groups > coldfusion flash integration > october 2007 >
You're in the

coldfusion flash integration

group:

Enable Disable fields onclick



Enable Disable fields onclick rizor
10/26/2007 4:04:08 PM
coldfusion flash integration: I have a cfinput field that is disabled when the form first loads (disabled="true")
I want to click a button to enable the field. (disabled="false")

How can this be done in a CF flash form?
Re: Enable Disable fields onclick The ScareCrow
11/1/2007 11:03:27 PM
See attached code for example.

Ken


<cfform name="myform" format="Flash">
<cfformitem type="script">
function doEnable(){
_root.t1.enabled = true;
}

</cfformitem>

<cfinput type="Text" name="t1" value="this field" required="No"
enabled="false">
<cfinput type="button" name="submit" value="Submit" onclick="doEnable();">

</cfform>
AddThis Social Bookmark Button