Cabbage Logo
Back to Cabbage Site

Issue with Checkbox Behavior in Cabbage

Hello everyone!

I’m new to this forum, so first of all, I’d like to greet you all and thank you in advance for any help you can provide.

I’m facing an issue with checkboxes in my Cabbage project. I have five checkboxes, and what I want is that when one is selected, all the others get deselected automatically. For instance, if I select the first one, the others should all be unchecked; if I select the second one, only that one should remain checked and the rest unchecked, and so forth. Additionally, I need that each time one is selected, a conditional action is triggered to display certain information related to that checkbox.

I’ve tried to implement this behavior, but I can’t get the other checkboxes to deselect when one is chosen. I would greatly appreciate any advice or suggestions to solve this issue.

Thank you very much in advance!

Best regards,
Carlos

Welcome to the forum @Carlos_Marino. You can use a radioGroup() identifier for this. Use the same number for all elements in the group, so all five could use radioGroup(99) for example :+1: With this set only one checkbox can ever be one, so your code can just check each widget for 1.

1 Like

Hello @rorywalsh

I wanted to thank you for your recommendation about using radioGroup() . It has been really helpful, and I’ve already implemented it in my code. Additionally, I’d like to let you know that my intention is for each checkbox to display a different groupbox . This way, when each checkbox is checked, a specific groupbox associated with that checkbox will become visible.

If you have some time and it’s possible, I would love it if you could add a small example to visualize this system. We’re working on macOS, version 2.10.

Thank you again for your help!

Best regards,
Carlos
-------------------test.csd (1.1 KB)

Something like this?

test.csd (1.4 KB)

1 Like

Yes! That works perfectly, thank you so much for your help :pray:
I really appreciate your time and the clear example — it helped me understand how to handle this properly.

Thanks again!

1 Like