danarashad
Programmer
Why doesn't this work.
<cfoutput query="depts">
<cfset deptname = #Dept# >
<input name="dept" type="radio" value="#deptname#"
<cfif #session.auth.dept# IS #deptname#> checked="checked" </cfif>
<cfloop query="catDepts">#deptname#
<cfif #deptname# IS NOT #catDepts.catsall#> disabled="disabled" </cfif>
</cfloop>
/>
This disables all the radio buttons. Even when they are valid.
#Name#<br />
</cfoutput>
<cfoutput query="depts">
<cfset deptname = #Dept# >
<input name="dept" type="radio" value="#deptname#"
<cfif #session.auth.dept# IS #deptname#> checked="checked" </cfif>
<cfloop query="catDepts">#deptname#
<cfif #deptname# IS NOT #catDepts.catsall#> disabled="disabled" </cfif>
</cfloop>
/>
This disables all the radio buttons. Even when they are valid.
#Name#<br />
</cfoutput>