Check Box: Only allow one box to be checked out of any number of boxes

Answered Check Box: Only allow one box to be checked out of any number of boxes

  • 12. prosince 2007 8:35
     
     
    Hi,

    I have 3 check box. I want Only one box to be checked out of 3 check boxes. Only one check box should be selected one time. Can any body share the syntax. I am using MS CRM 3.0

    checkbox1
    checkbox2
    checkbox3

    Thanks in advance.

    -John




Všechny reakce

  • 12. prosince 2007 9:24
     
     Odpovědět

    You'll need to add some JavaScript to the onChange event for each of your checkboxes:

     

     

    This is the code you'd add for checkbox1, obviously you'll need to amend it accordingly for the other 2 checkboxes.

     

    Code Block
    if(crmForm.all.new_checkbox1.checked)
    {
     crmForm.all.new_checkbox2.checked = false;
     crmForm.all.new_checkbox3.checked = false;
    }

     

     

    Smile

  • 13. prosince 2007 15:27
     
     

    use radio buttons mate. :]