There was a post on an adobe forum wondering how to go about doing this, they state that they go on and on looking for how to do this, and so i’m gonna help’em out…

View the example
Download the File
the basis of what they want to do is rather easy, but the error handling in cfform when the format is flash, is SOOOOO HARD TOOO DEBUG!

1. Call the setUp() function in the onload=”setUp();” in the beginning form tag that your going to create further into the lesson.

<cfform name=“Performance”
timeout=“500” height=“800” width=“800”
format=“flash” skin=“haloSilver”
action=“action.cfm” method=“post”
onload=“setUp();”>

2. Create a cfformitem type=”script” right under the cfform tag and create your setUp function as well as another function we are going to call, when one of your select boxes change.

<cfformitem type=“script”>
public function setUp():Void{
School.enabled = false;
}
public function changeStatus(status):Void{
if (Title.selectedItem.data == 1){
   //this is case sensitive so be careful
School.enabled = status;
}
}
</cfformitem>

3. Create Your two cfselects, and call the changeStatus() function in the onChange=”” event of the first one.

<cfselect name=“Title”
label=“Title” width=“200”
tooltip=“Please enter appropiate title.”
required=“Yes” onChange=“changeStatus(true)” >

<option>Select</option>
<option value = “0”>
Asso. & Asst. Deans
</option>
<option value = “1”>
Asso. & Asst. Provost & VPs
</option>
<option value = “2”>
Campus Directors
</option>
</cfselect>

<cfselect name=“School” width=“200” required=“Yes” >

<option>
Select
</option>
<option value=“1”>
Dyson
</option>
<option value =“2”>
Education
</option>

</cfselect>

</form>

Hope this helps… take a look at the example.