cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AdamD
Helper III
Helper III

Power Apps Custom Forms not refreshing on edit

This issue very well could be how web browsers handle the forms, but it's driving me crazy and I want to make sure that there isn't something I can do to change it.

I have customized PowerApps forms in a SharePoint list that track user requests for work. When a user currently goes to edit a form and saves, it works great: the form is submitted, and the item on the SharePoint list is immediately updated in their current view. However, if they go back to edit the same item, the form data that is loaded is not reflective of the changes; it loads content in the forms from the last time they'd gone to edit the form. In the attached two-picture example I've made an edit to the project number "1234" changing it to "12345". I Save the job and can then see in the SharePoint list that the change has been made, however, when I immediately try to edit the job again, project number still says "1234." If I attempt to make any changes to that stale form and save them, they will not be written to SharePoint and I will receive no error message indicating something went wrong, which has caused some users a lot of headache.

This behavior can be avoided if the user either refreshes the page or clicks on a different item before clicking back to their original item to edit a second time. Is there anything I can do on the forms side to avoid this? I have the form set to clearcollect the data from SharePoint OnEdit and after save I execute ResetForm. I'm not sure there's much else I can configure in PowerApps to tell it to refresh the data, and something tells me that because it works fine after a browser refresh or if users click to view a different item, it has more to do with browser caching.

Let me know if you have any ideas!

17 REPLIES 17

@RandyHayes , Refresh() has cured the issue! While I think it's awful peculiar that adding the refresh wasn't necessary months or even weeks ago, it's no trouble for me to remember to add it these sharepoint integrated forms from here on out.

And no worries at all about getting back to me when you had time. Honestly, I didn't expect to hear back over the weekend and I'm amazed you spent this much time assisting whilst on vacation! Please enjoy your time with your family and thank you again for all the help you've so kindly offered.

@AdamD 

Yes, I don't recall the need for it either.  But, again, I don't work a tremendous deal with Integrated.

Glad it helped - and the family is glad too... Smiley LOL

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Thank you for the solution

digitaldanlim26
Advocate II
Advocate II

Turn off the "Use longer data cache timeout and background refresh" under Experimental Features in Advance Settings

 


@digitaldanlim26 wrote:

Turn off the "Use longer data cache timeout and background refresh" under Experimental Features in Advance Settings

 


Had the exact same issue and this is what worked for me. Thanks

Had the exact same issue and turning off the longer cache under experimental features was the only way I got this resolved.  If you are having the issue where you save a record and stay on the same form and want to see the new data you just saved then do the following

1 - add Refresh (DataSource) in the onsuccess property of the form

2 - then turn "Off" the experimental data cache under Settings

 

then you will see your new data in the form on screen - otherwise you will not...  trust me.. I spent countless hours chasing this down!!! 

 

Let this thread know if you hit this problem and the instructions above do not resolve it

thank you for posting this. I was having the exact same problem with a custom edit form and adding the refresh on success resolved my problem.

After updating 'OnSuccess' field, it worked 😄 

Thank you!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,185)