'Disable multiple selection of checkboxes in Power Apps gallery

I have added a list of checkboxes in the PowerApps gallery. I want to prevent the user from selecting more than one checkbox. If condition is an option but it's not suitable for my scenario as the list of checkboxes is dynamic. The checkboxes can increase or decrease anytime based on events. Please suggest if there is any possible solution for this.



Solution 1:[1]

I'm was also looking for a solution to this. Despite setting DisplayMode.Disable upon the "OnCheck" action of one, the boxes are still able to be checked even though displayed as disabled. To address it, I made a condition on the gallery itself, where property 'selectable' is on the condition of whether the checkbox is checked (value=true).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1