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

Notifications

Announcements

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
    153,084 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
    153,084 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard