Showing results for 
Search instead for 
Did you mean: 
Post Prodigy
Post Prodigy

Disable Unchecked boxes only

I want no more checkboxes in my gallery to be selected if there are already 10 selected. However, I want the user to be able to unselect checked boxes if they want to change their answer. This formula does not let the user make changes once they hit 10. How can I fix this? If(Value(Label6.Text) = 10, DisplayMode.Disabled, DisplayMode.Edit)

Memorable Member
Memorable Member

Can you show us the formula for the label?



CountRows(Filter(BrowseGallery1.AllItems, Checkbox3.Value = true)) @leyburn19 

I think there may be a complexity in the way the Gallery and Checkboxes will work.  You can try


On the oncheck to the Checkbox: 



On the uncheck:




Formula for Label:


I am not sure what that is supposed to do. My count label works. I just can't have all the checkboxes disbaled, I only want the unchecked boxes to be disabled so the user can make changes. @leyburn19 



If(Value(Label6.Text) = 10 And Checkbox?.Value=false, DisplayMode.Disabled, DisplayMode.Edit)

Helpful resources

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.


Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (3,742)