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 / Remove item from colle...
Power Apps
Unanswered

Remove item from collection

(1) ShareShare
ReportReport
Posted on by 726

I'm using a collection to create a dropdown list 

 

I have oncheck 

 

Collect(
 EquipmentLis, /*create a collection to save the access equipment dropdown list*/
 ("Aframe"))

I thought i could do 

Remove(
 EquipmentLis, /*create a collection to save the access equipment dropdown list*/
 ("Aframe"))

but this does not work. 

 

I am not using a gallery and i dont want to clear all items from the list just the one thats been unticked.  

Categories:
I have the same question (0)
  • VishalJhaveri Profile Picture
    1,167 Moderator on at

    This is a Prompt Response.

     

    // Button's OnSelect property
    Remove(colItems, Gallery1.Selected); Refresh(Gallery1)

  • amyharkus86 Profile Picture
    726 on at

    @VishalJhaveri i'm not using a Gallery1.

  • VishalJhaveri Profile Picture
    1,167 Moderator on at

    // Removing an item from a collection based on a condition
    Remove(MyCollection, LookUp(MyCollection, ID = 123))

  • Verified answer
    iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    Hi @amyharkus86 

     

    When you collect the value to the collection, it is collected into a record which must have a field defined per value, as you specified no field, it defaulted to Value:

    image.png

     

    You can use remove in this way to achieve when you wanted:

    Remove(
     EquipmentLis,
     {Value: "Aframe"}
    )

     

    Cheers,

    Sancho

  • amyharkus86 Profile Picture
    726 on at

    @iAm_ManCat Thank you, that's worked just as i needed. 

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard