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 / Hidden item gallery
Power Apps
Answered

Hidden item gallery

(0) ShareShare
ReportReport
Posted on by 298

I would like to know if there is a way to create a button in the gallery so that when it is pressed, the corresponding item is hidden from the gallery but not from the database but let me know in the database that was attached.

 

Is there how to do this? I thought about creating within a form, but it will be a lot of work because you have to keep saving and there are several items to be archived

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @luisabsg 

    You can take two approaches on this:

    1)  Update a column (like a status) in your data record and then filter.

    2) Store a list of "selected" items in your app and filter.

     

    Can you clarify if your desire is to have the items that have been "button pressed" only not appear in the Gallery during a single app session or if the desire is to have them not appear from that point on?

  • luisabsg Profile Picture
    298 on at

    I have a SharePoint List and created a column like "Yes/No". I would like to change this status of each item using a button for example. 

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @luisabsg 

    Very good.  This would be method #1 as I mentioned.

    So, on the OnSelect action of your button, use this formula (please replace names as needed):

    UpdateIf(yourDataSource, ID=ThisItem.ID, {yourYesNoColumn: false})

    (assuming false is the change needed)

     

    Then your Gallery Items property would filter the list:

    Filter(yourDataSource, yourYesNoColumn)

    This will return all the items that have true for the yes/no column.

  • luisabsg Profile Picture
    298 on at

    Perfect! Ty 🙂 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @luisabsg 

    No problem!

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
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard