cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powerapps890
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)

5 REPLIES 5
leyburn19
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: 

Collect(vCount,ThisItem)

 

On the uncheck:

 

Remove(vCount,ThisItem)

 

Formula for Label:

CountRows(vCount)

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 

Try

 

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

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,199)