Problems with using checkboxes for selection when writing interfaces using vanilla

How to turn multiple options into a single selection when writing an interface using vanilla and using checkbox for selection. I have two options here, and I want to achieve automatic deselection of the other option when I click on it on the UI interface.

Use a radio group. Are you sure you want checkboxes?

In any case, when you tick a checkbox, in the callback, cycle through the other checkboxes and untick them.

Thank you. I use the form of judgment. If you choose this option, give another set (False)


Yes. That’s a radio group.

thanks very much