0 Replies Latest reply: Mar 1, 2011 10:16 AM by rockhiker RSS

    radio button

    rockhiker Community Member

      I have a form with the first field as a radio button followed by 6 checkboxes. If the user checks the radion button I want to disable the 6 checkbox choices. I have not been able to figure out the logic to do it - or can it be done.  see form code and image below  - thanks jim

       

      <cfform action="confirmReg.cfm" method="post" width="540">
                  <fieldset>
                  <legend>Registration Form</legend>
                 
                  <table width="530"style="border-collapse:collapse;">
         <tr>
        <td valign="top"><cfinput type="radio" name="completeSession" value=""> </td>


        <td colspan="3"> <em><strong>Attend all three days (Entire Session)</strong></em><br /><br />

      </td>
        </tr>
                 
                 
        <tr>
          <th width="33" rowspan="2" scope="row">DAY 1</th>
          <td width="63" rowspan="2"><cfinput type="checkbox" name="fundamentals" value="">      <br />      <cfinput type="checkbox" name="custom" value=""></td>
          <td width="294">Session 1 Mobility 3.0.4 Fundamentals</td>
          <td width="112">8:30AM- 11:30PM</td>
        </tr>
        <tr>
          <td height="27">Session 2 Mobility Custom Reports</td>
          <td>12:45PM - 4:00PM</td>

      </tr>

        <tr>
          <th width="33" rowspan="2" scope="row">DAY 2</th>
          <td width="63" rowspan="2"><cfinput type="checkbox" name="pms" value="">      <br />      <cfinput type="checkbox" name="map" value=""></td>
          <td width="294">Session 3 Mobility Pavement Management</td>
          <td width="112">8:30AM- 11:30PM</td>
        </tr>
        <tr>
          <td height="27">Session 4 Mobility Map</td>
          <td>12:45PM - 4:00PM</td>

      </tr>
       
       
      <tr>
          <th width="33" rowspan="2" scope="row">DAY 3</th>
          <td width="63" rowspan="2"><cfinput type="checkbox" name="advReport" value="">      <br />      <cfinput type="checkbox" name="mms" value=""></td>
          <td width="294">Mobility Custon Reports Level 2</td>
          <td width="112">8:30AM- 11:30PM</td>
        </tr>
        <tr>
          <td height="27">Maintenance Management Workshop</td>
          <td>12:45PM - 4:00PM</td>

      </tr> 
        </table>

                   </fieldset>
               
                  </cfform>sesssionReg.gif