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 / Clear Browse Gallery
Power Apps
Answered

Clear Browse Gallery

(0) ShareShare
ReportReport
Posted on by 762

Hello Community,

 

I am fairly new to Power Apps, and I'm trying to clear the Browse Gallery once the form has been submitted or only display current user information, as I would like others not to be able to see content due to confidential information

 

Can anyone help me with this please,  I have searched the community but I'm not able to find anything that can help me, but apologise if there is already a post out there.

I would like this screen to refresh when the form is submitted, or only display current user information.

ClaireAllen_0-1610984262533.png

I would appreciate any help to resolve this, 
Screen shots on how to, would also be appreciated,
Thank you
Claire

 

Categories:
  • JayMagness Profile Picture
    1,663 on at

    Hi,

     

    In the form there is an On Success option put Navigate(<Table or Gallery>) once you select to Submit Form it should do what you want.

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @ClaireAllen 

    You could have a field in your datasource called Submitted.  In the OnSuccess property of the form, 

     

     

    Patch(datasource, Form1.LastSubmit, {Submitted:true})

     

     

    Make the items property of the gallery Filter(datasource, Submitted = false).  If your current gallery Items property is something like

     

    Sort(SearchByColumns(datasource,TextSearchBox1.Text,"somefield"),"somefield",If(SortDescending1,Descending,Ascending))

     

    you could replace datasource with a temporary variable like 

     

    With(
     {wdatasource: Filter(
     datasource,Submitted=false
     )},
     SortByColumns(
     Search(
     wdatasource,TextSearchBox1.Text,"somefield"
     ),"somefield",If(
     SortDescending1,Descending,Ascending
     )
     )
     )
    )

    In the above formulas you would replace datasource with your table and somefield with the actual field name you use to search and sort the table.

     

     

  • ClaireAllen Profile Picture
    762 on at

    Thank you @JayMagness 

    This is what I see when I start typing Navigate, I entered what you mentioned but received an error message, so I tried to enter Navigate(BrowseScreen1), but when I submitted the form, it did not clear my data to show blank fields.

    ClaireAllen_0-1611050053777.png

     

  • ClaireAllen Profile Picture
    762 on at

    Thank you @Drrickryp 

    I used the following method as suggested, and I've manged to get it to do what I wanted.

    ClaireAllen_1-1611051071146.png

    Thanks for the assistance,

     

    Kind regards

    Claire

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard