Expand my Community achievements bar.

Checkbox group

Avatar

Former Community Member
Hello,



I have three checkboxes in a row. I select them, click Layout, and the Group commnd is grayed out. What is the secret to group objects so that you can only check one checkbox? Right now in the form all three checkboxes can be filled in. I've read all the help directions and cannot figure it out.



Thank you
4 Replies

Avatar

Former Community Member
I want to do the same but i'm new to Designer i don't even know how to approach this

Avatar

Former Community Member
Use radio buttons if you want to form an exclusion group.



Regards,

Dave

Avatar

Former Community Member
Hi Dave,



I take your response to mean that I cannot create mutually exclusive checkboxes where if there are three of them and the user checks one that the other two cannot be checked? Only radio buttons do that? Is that right?



Thanks very much. -Rich

Avatar

Former Community Member
Well, you can do that by inserting a script, but radio buttons do that with no script involved. If you want to do it with checkboxes, here is the script (to be placed in the click event). You'd need to give the checkboxes unique names and you'd need a script for each of the other boxes. So for 3 boxes:



if (this.rawValue == 1) { //this stands for current checkbox

formName.subformName.CheckBoxName1.rawValue = 0 // clear checkbox

}



if (this.rawValue == 1) { //this stands for current checkbox

formName.subformName.CheckBoxName2.rawValue = 0 // clear checkbox

}



Regards,

Dave