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 / Select all/unselect al...
Power Apps
Answered

Select all/unselect all: checkbox, outside gallery

(0) ShareShare
ReportReport
Posted on 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

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,797 Most Valuable Professional on at

    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

     

     

     

  • a374229_Tommy Profile Picture
    14 on at

    Thank you! 

  • a374229_Tommy Profile Picture
    14 on at

    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

     

  • WarrenBelz Profile Picture
    154,797 Most Valuable Professional on at

    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard