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

Community site session details

Session Id : lq5iNiSN+I1ISWT8FxOyHH
Power Apps - Building Power Apps
Answered

Select all/unselect all: checkbox, outside gallery

Like (0) ShareShare
ReportReport
Posted on 12 Sep 2022 11:33:26 by 14

Hello 

 

I am trying to add a checkbox with a select all and Unselect all function and this will save the items that i have choosen in a Gallery to a collection. for now I have succeeded if i choose the checkbox for the specific item in the gallery then it will collect the item to a collection for later purposes and if i uncheck, it will delete the item from the collection. 

 

When i select "Unselect all", my collection will be cleared out and reset. I have a hard time for the "Select all"  to collect the items from my filter to the same collection. Is there any way to "Select all" and collect the filtered items to a collection? 

 

Thank you in advance if someone could help me with this. 

 

a374229_Tommy_1-1662982127486.png

 

a374229_Tommy_2-1662982158575.png

 

a374229_Tommy_3-1662982192218.png

 

  • WarrenBelz Profile Picture
    149,183 Most Valuable Professional on 12 Sep 2022 at 21:32:20
    Re: Select all/unselect all: checkbox, outside gallery

    Hi @a374229_Tommy ,

    I see you have a Delegation warning there (although it may not be relevant to this). If your gallery is based on a SharePoint list, try this

    RemoveIf(
     BatchGTOid,
     ID = ThisItem.ID
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • a374229_Tommy Profile Picture
    14 on 12 Sep 2022 at 12:44:37
    Re: Select all/unselect all: checkbox, outside gallery

    Hello WarrenBelz, 

     

    I have gotten a issue after the new IF formel. When I try to uncheck a specific item from the Gallery, it doesn't remove the specific item from the collection? any suggestion? 

     

    a374229_Tommy_0-1662986668016.png

     

  • a374229_Tommy Profile Picture
    14 on 12 Sep 2022 at 12:14:05
    Re: Select all/unselect all: checkbox, outside gallery

    Thank you! 

  • Verified answer
    WarrenBelz Profile Picture
    149,183 Most Valuable Professional on 12 Sep 2022 at 11:45:43
    Re: Select all/unselect all: checkbox, outside gallery

    Hi @a374229_Tommy ,

    On the OnSelect of the top check box

    If(
     Self.Value,
     ClearCollect(
     YourCollectionName,
     GalleryName.AllItems
     ),
     Clear(YourCollectionName)
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

     

     

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473