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 / How to clear DisplayForm
Power Apps
Unanswered

How to clear DisplayForm

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Sometimes when I select an item from a Gallery and click the next button to switch to the DisplayForm view, the contents of the previously selected Gallery item are still onscreen for a few seconds before the item I just selected loads. Is there any way to clear the contents of DisplayForm so the previously selected item doesn't display?

 

To clarify, this is my problem scenario: Open app -> Select item from Gallery & click Next -> View item details in DisplayForm -> click Back button to go back to Gallery -> select a new item from Gallery & click Next again -> DisplayForm shows the first item's details for a few seconds before the new item's details are displayed.

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

    Hi JML,

     

    It should be a default behavior, when you are navigated from BrowseGallery screen to the DetailsScreen, the selected item will need a second to be downloaded.

     

    Please make sure your Network is working fine, so it doesn’t need longer time to download the selected item.

     

    Best regards,
    Mabel Mao

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the reply, Mabel. My issue is that while the selected item is being downloaded, the DetailsScreen is still showing the previously selected item, instead of showing blank. I think that no matter how long it takes to download the selected item, the DetailsScreen should be blank until the item has finished downloading - how do I get it to do that?

  • redesignTHEmind Profile Picture
    2 on at

    Old post but I had the same issue and found your post. I couldnt find any answers on this but came up with a solution and thought other may be looking so here it is!

     

    On your gallery, make sure the OnSelect command sets a variable instead of just selecting ThisItem, example below:

    Set(VarSelectedItem, ThisItem) && Navigate(DetailsAll, None)

    Where 'VarSelectedItem' is the name of the variable you are creating so can be changed to suit and 'DetailsAll' is the next page I want to navigate to.

     

    Then on your DisplayForm set the Item field to this:

    LookUp(sourcetablehere, ID=VarSelectedItem.ID)

    Make sure the word after the = sign is the same as the variable you set on the step above.

     

    After you have done those steps, change the OnSelect field of the back button to this:

    Set(VarSelectedItem, Blank()) && Back()

     

    What this is doing is saving your record to a variable when you click the gallery, your displayform is then displaying this saved variable, and the back button clears the record that is saved inside the variable so when you click the next record the form is initially blank until the new record loads.

     

    Works for me anyway! 🙂

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

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard