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 / Hide entry in a galler...
Power Apps
Unanswered

Hide entry in a gallery without deleting the entry in sharepoint

(0) ShareShare
ReportReport
Posted on by 775

Hello All,

 

I want that when I click on a button, an entry in a gallery hides. Important: Not deleted, that is, it must still be stored in the data source, but that it hides itself from the gallery or rather becomes invisible (only the one selected element). What is the best way to do this? What do I enter in the button?

 

Thanks in advance

Categories:
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @PowerSäm You hide entries by filtering items in the gallery. So, it depends on what this Items is. Can you share more info.

  • BCLS776 Profile Picture
    8,994 Moderator on at

    You can do this by changing the Visible property of the text box or other control you are using for entry. Try the following steps:

     

    In the OnStart property of your app put:

    Set(varVisible, true)

     

    In the Visible property of the control you want to manipulate put:

    varVisible

     

    Finally, in the OnSelect property of a button put:

    Set(varVisible, !varVisible)

     

    This will toggle the visibility of the control each time you press the button. Hope it helps!

  • PowerSäm Profile Picture
    775 on at

    Thanks for your quick reply, @CNT.

     

    I have built everything so that you can create leave requests in powerapps, they are then saved in sharepoint and on the home page of the app all created requests are displayed. I also built in that the requests have to be approved first.

     

    Now I want that when a request is rejected, the USer can decide to "delete" it. But for privacy reasons, the entry must not be deleted from sharepoint, but only disappear for the user, or in other words, it should hide. Important: In sharepoint the rejected request must still remain.

     

    I have done it so far, that if you click on the trash icon of the respective request, a popup opens and says "Do you really want to hide the entry". After you click on the yes button the entry should hide itself.

     

    Is it possible to define somewhere that the selected item should simply disappear when you click on the "Hide" button?

     

    Thanks in advance

  • PowerSäm Profile Picture
    775 on at

    Hi @BCLS776 and thanks for your quick reply.

     

    Unfortunately this does not work, because then the whole gallery disappears and not only the selected request.

     

    Somewhere you have to define that only the selected entry should disappear and not the whole gallery.

  • BCLS776 Profile Picture
    8,994 Moderator on at

    @PowerSäm wrote:

    Hi @BCLS776 and thanks for your quick reply.

     

    Unfortunately this does not work, because then the whole gallery disappears and not only the selected request.

     

    Somewhere you have to define that only the selected entry should disappear and not the whole gallery.


    For filtering out a specific gallery item, please use the method @CNT is describing for you. The method I was describing simply makes controls turn invisible.

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @PowerSäm In you SP List, you'll need to have a column (single line of Text) called Status. This can be set to Deleted when the user deletes an Item and then in the Gallery, you'll filter out these deleted Items by saying, Filter(yourSPList, yourStausColumn<>"Deleted")

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard