Copy link to clipboard
Copied
Can not get onClick syntax to work correctly. Help is much appreciated.
<cfform action="nexpage.cfm" target="_self" method="post" enctype="application/x-www-form-urlencoded" name="frm1" format="flash" width="900" height="700" skin="haloblue">
<cfformgroup type="horizontal">
<cfformitem type="text" width="300" enabled="yes">How did you learn of our online process?</cfformitem>
<cfinput type="radio" name="lead" label="Newspaper" value="1" onClick="document.frm1.newspaper.disabled=false" />
<cfselect disabled="true" visible="yes" name="newspaper" id="newspaper" multiple="no" width="250" >
<option value="">Select one</option>
<option value="1">option 1</option>
<option value="2">option 2</option>
<option value="3">option 3</option>
</cfselect>
</cfformgroup>
<cfformgroup type="horizontal">
<cfformitem type="spacer" width="300" enabled="yes" />
<cfinput type="radio" name="lead" label="Job Center" value="2" onClick="document.frm1.JCenter.disabled=false" />
<cfselect disabled="true" visible="yes" name="JCenter" id="JCenter" multiple="no" width="250" >
<option value="">Select one</option>
<option value="1">option 1</option>
<option value="2">option 2</option>
<option value="3">option3</option>
</cfselect>
</cfformgroup>
</cfform>
Copy link to clipboard
Copied
If disabled=false fails, then use
<cfinput type="radio" name="lead" label="Newspaper" value="1" onClick="document.frm1.newspaper.enabled=true" />
<cfinput type="radio" name="lead" label="Job Center" value="2" onClick="document.frm1.JCenter.enabled=true" />