cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powerapps890
Post Prodigy
Post Prodigy

Uncheck boxes once limit is reached

CountRows(Filter(BrowseGallery1_2.AllItems, Checkbox3_2.Value=true)) - This is what I have as my text on a label and then on the display mode of the checkbox I have this 

If(
    Value(Label1.Text) = 10,
    DisplayMode.Disabled,
    DisplayMode.Edit
)

The problem is once all 10 or checked you can't uncheck any boxes. How do I get it so that the already selected boxes are uncheckable. I can't have all of the boxes be locks in case the user wants to change their selection. 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@powerapps890 

My suggestion would be this...

Set the DisplayMode of the checkbox to :

    If(Value(Label1.Text)=10 && !Self.Value, Disabled, Edit)

Then you can uncheck the ones that are checked...

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

1 REPLY 1
RandyHayes
Super User III
Super User III

@powerapps890 

My suggestion would be this...

Set the DisplayMode of the checkbox to :

    If(Value(Label1.Text)=10 && !Self.Value, Disabled, Edit)

Then you can uncheck the ones that are checked...

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (39,236)