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 / Storing Items in a col...
Power Apps
Unanswered

Storing Items in a collection from a gallery when checkbox inside each template is checked.

(0) ShareShare
ReportReport
Posted on by 280

I have a gallery which has a checkbox for each item. I want to store the gallery contents of those items whose checkbox is ticked. how can this be done ? 

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @PAJ ,

     

    You need to create collection on 'OnCheck'

    Collect(col_CheckedItems,ThisItem)

    swaminawale_0-1679840729957.png

     

    there is another scenario where If you uncheck that item, then you need to remove it from collection, Right. So here's the formula for 'OnUncheck'

    Remove(col_CheckedItems,ThisItem)

    swaminawale_1-1679840798286.png

     

    Result - 

    swaminawale_2-1679840861363.png

     

    Let me know if this helps and if it is, accept this as a solution.

    Thanks 😄

  • PAJ Profile Picture
    280 on at

    Actually i dont want that whole record from the gallery item. I just need a particular value.

    I tried using Collect(checkedItems,ThisItem.FirstName) which worked for me but for Remove(checkedItems,ThisItem.FirstName) its giving an error that 'It doesnt support text value"

  • PAJ Profile Picture
    280 on at

    @Anonymous 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @PAJ , 

    Keep remove function as it is and then try

  • PAJ Profile Picture
    280 on at

    This is how it shows

    PAJ_0-1679922452607.png

    For Remove , it shows issue

    PAJ_1-1679922501253.png

     

     

  • PAJ Profile Picture
    280 on at

    @Anonymous 

    PAJ_0-1679923077589.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Let me try this at my end and will get back to you soon 🙂

  • PAJ Profile Picture
    280 on at

    ok

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard