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 / How to remove items fr...
Power Apps
Answered

How to remove items from collection when unselected checkbox

(0) ShareShare
ReportReport
Posted on by

Hi , I have a situation I have a sharepoint list where I have a column with values.

Palucci12_0-1690443946181.png

 I created a gallery in which I have a checkbox and in OnCheck I wanted it to take values when it is checked and it works

Collect(CollProjectsAdmin,ThisItem.Admini)

But I don't know how to remove it because giving Remove and RemoveIf gets an error

RemoveIf(CollProjectsAdmin, Admini = ThisItem.Admini)

Palucci12_1-1690444141358.png

Remove(CollProjectsAdmin, ThisItem.Admini = Admini)

Palucci12_2-1690444194445.png

 

Categories:
I have the same question (0)
  • Verified answer
    v-hanytian-msft Profile Picture
    Microsoft Employee on at

    HI @Palucci12 ,

    OnCheck:

    Collect(CollProjectsAdmin,Admini:ThisItem.Admini)

    vhanytianmsft_0-1690444890744.png

    OnUncheck:

    RemoveIf(CollProjectsAdmin, Admini = ThisItem.Admini)

    vhanytianmsft_1-1690444954136.png

    Hope this will help you,

    Best Regards,
    Tina

     

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 88

#2
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 45

Last 30 days Overall leaderboard