Expand my Community achievements bar.

Exclusion Groups

Avatar

Level 2

Is it possible to create an exclusion group using check boxes instead of radio buttons?

I need to provide boxes on a form which can be filled (for example) Yes or No, but also need to be able to return the field to null in case it has been clicked inadvertently. (so for example if "yes" is selected, clicking on "yes" again sets that field to null without switching on the "no" field).

While I can achieve this using the action builder, each check box has a separate field name in the database, and I need both boxes to be the same field, like when using a radio button exclusion group.

If I create an exclusion group containing radio buttons, I can't seem to be able to switch off all the answers when filling the form.

I'm sure I'm missing something really simple...but any help gratefully received!

Many thanks...horrorhound

1 Reply

Avatar

Level 10

Hi,

I would be inclined to stick with radio buttons for mutually exclusive selections.

There is an example here where the script in the click event of the radio button exclusion group, so that if the user is holding the Shift key, the selection is cleared. http://assure.ly/j1KdNq.

Another example demonstrates script that looks at the initial value of the radio button exclusion group and if it is already selected, it will deselect: http://assure.ly/kp60nk.

You can also use script to force a group of checkboxes to behave as mutually exclusive, but as you point out you end up with separate objects.

Hope that helps,

Niall