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 / Auto Hide Gallery Item...
Power Apps
Answered

Auto Hide Gallery Item after Form Submission

(0) ShareShare
ReportReport
Posted on by 47

Hi All,

 

I have a gallery which i use to populate data in a form. This is what I want to achieve:

 

PowerAppNoob_0-1613095350577.png

1. I select  Item 1 in the gallery.

2. The upper part of form gets populated with data coming from Sharepoint List.

3. User edits the lower part of the form.

4. Once done, user clicks the submit button.

5. Item 1 in the gallery disappears and gallery shows the 'unprocessed items' until all items have been processed and submitted.

 

I was able to achieve Steps 1 to 4 but I'm can't find a way on how to do Step 5. Any help will be much appreciated.

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @PowerAppNoob :

    I suggest you add a column to the gallery's data source to mark the submitted records.For example:

    1\My data souce:

    ClearCollect(GalleryList,{Title:"1",Status:"unprocessed"},{Title:"2",Status:"unprocessed"},{Title:"3",Status:"unprocessed"},{Title:"4",Status:"unprocessed"})

    2\Add a gallery(Gallery8) and set it's items property to:

    Filter(GalleryList,Status="unprocessed")

    3\Set the submit button's OnSelelct property to:

    Your original formula;/*Patch or SubmitForm*/
    Patch(GalleryList,Gallery8.Selected,{Status:"Finish"})

    71.gif 

    Best Regards,

    Bof

  • PowerAppNoob Profile Picture
    47 on at

    Hi @v-bofeng-msft ,

     

    This is exactly what i want to achieve. However, as what you may have noticed in my username, i'm still a nood. 😂

     

    When you say "add a column to the gallery's data source", you're saying to add a column in my SP list? And what would info should the column contain?

     

    Thanks in advance!

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @PowerAppNoob :

     1\Just add a 'Single line of text' column named 'Status',and set it's default value to "unprocessed".Something like:

    1.JPG

    2\Add a gallery(Gallery8) and set it's items property to:

    Filter(YourSpList,Status<>"Finish")

    3\Set the submit button's OnSelelct property to:

    Your original formula;/*Patch or SubmitForm*/
    Patch(GalleryList,Gallery8.Selected,{Status:"Finish"})

    Best Regards,

    Bof

     

  • PowerAppNoob Profile Picture
    47 on at

    It worked! Thank you so much! I'm happy my app is starting to be in shape. 😁

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 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard