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 / Walkaround to solve th...
Power Apps
Unanswered

Walkaround to solve the cache issues when switching between Edit/New and View forms

(0) ShareShare
ReportReport
Posted on by 169

i have always had this issue where PowerApps SharePoint integrated forms shows the previous loaded form very briefly before navigating and showing the correct data. i have looked everywhere for solutions and not found any. Not sure if Microsoft are looking at fixing in the future, i'm just looking for any walk-around. My users are loosing trust mainly because they are having to see old data briefly. 

i'm looking for a solution that would show a blank screen briefly instead before navigating to the actual form that was clicked by the user.

Since PowerApps always caches the last form/data that was visited, i was wandering if it is possible to make a blank screen the last cached data, so that when a user clicks the new form button or view form button the blank screen shows first before the actual form displays.

 

Now the challenge i have is how to tackle the OnCancel scenario.  This is tricky because there are about 3 different ways to cancel a form(the Cancel button, the 'x' at the top right, clicking outside the form). 
i can navigate to the blank screen using the OnCancel property. i just don't know how to handle the other scenarios where the user clicks on the 'x' button or clicks outside the form.

This is how far I've gone

OnCancel-
If(SharePointFormMode="CreateForm", ResetForm(FormNew);Navigate(BlankScreen,ScreenTransition.None), ResetForm(FormEdit);Navigate(BlankScreen,ScreenTransition.None))

OnNew-
Set(SharePointFormMode, "CreateForm");ResetForm(FormNew);NewForm(FormNew);Navigate(FormScreenNew,ScreenTransition.None)
OnEdit-
Set(SharePointFormMode, "EditForm");EditForm(FormEdit);Navigate(FormScreenEdit,ScreenTransition.Cover)

OnView-
Set(SharePointFormMode, "ShowForm");ViewForm(FormEdit);Navigate(FormScreenEdit,ScreenTransition.Fade)

OnSave-
If(SharePointFormMode="CreateForm", SubmitForm(FormNew);Navigate(BlankScreen), SubmitForm(FormEdit);Navigate(BlankScreen))

 

Categories:
  • WarrenBelz Profile Picture
    156,730 Most Valuable Professional on at

    Hi @Gottijay2000 ,

    Here is something I use when galleries have to refresh to stop the user thinking the screen is frozen and start clicking things.

    Do a new blank screen with the background RGBA( 230, 230, 230, 0.5) and put the spinner (attached) in the middle.

    Right at the start of your code Navigate to this screen with Transition.Fade and then back again to your screen at the end of the code with the same transition.

    Screen fades to spinner and then fades in again at code end. I am wondering if this would hide the experience you are having.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Spin-1s-200px.gif

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard