web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Multiple Gallery Selec...
Power Apps
Answered

Multiple Gallery Selection

(0) ShareShare
ReportReport
Posted on by 40

Hello!

 

I have a gallery with various items. On each line, I have a checkbox to select it from, and I also have a checkbox that selects all the lines. I need to create a lock so that when I reach 299 selected lines, I won't let any more be selected.

How to do this?

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @daniellerodris 

    Place a label outside of your Gallery (you can set the Visible to false as this is just a helper label) and set the Text property to:   CountRows(Filter(yourGallery.AllItems, yourCheckBox.Value))

     

    Set the DisplayMode of your gallery checkbox to :

        If(Value(theLabelNamefromAbove.Text)>=299 && !Self.Value, Disabled, Edit)

     

    You are done!

     

    This will disable all unchecked checkboxes while leaving the checked ones available in case the user wants to uncheck one.

     

    I hope this is helpful for you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard