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 / Make an interface elem...
Power Apps
Answered

Make an interface element aware of its presence in a collection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi there - I'm new to PowerApps and just learned about collections. I can see how to make an interface element like a checkbox cause an item to get added to what's effectively an array, and it's really easy to cause items to be added or removed to a collection - that's joyful!

 

I can't quite figure out how to make that checkbox aware that ThisItem was removed from a collection - I want it to listen for the item's status in a collection, and act when the status changes.

 

For example...

 

I have a checkbox that adds an item to a collection, and I have a button that removes an item from a collection. But I could have multiple screens with different user interactions, so...

  • The checkbox on screen 1 that adds the item to a collection works beautifully
  • The button on screen 2 that removes the item from the collection also works beautifully
  • ...but if a user adds ThisItem to the collection on screen 1 and removes ThisItem from the collection on screen 2, and navigates back to screen 1... the checkbox remains checked. I would like the checkbox to listen for ThisItem's addition or removal from that collection, and change its state as a result. 

It's possible, right? I'll appreciate advice!

Categories:
I have the same question (0)
  • Verified answer
    Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @sloughcow 

     

    Set the Default property of your checkbox to:

     

    ThisItem in YourCollectionName

     

    Hope this helps

     

  • sloughcow Profile Picture
    Microsoft Employee on at

    Thank you @AmDev !

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
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 617

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard