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 / Edit Form retains valu...
Power Apps
Answered

Edit Form retains value from cache

(1) ShareShare
ReportReport
Posted on by 21

Hello,


I have an edit form and after a user submits the data, for e.g. change owner to Max and submits the form, the form is updated without any issue.

 

But when the same user goes to next row/record in the same session where the owner is John, the system automatically shows Max as a value for field owner, is there a way to clear the cache on the next record entry?

 

Thanks

Bazz

Categories:
  • LRVinNC Profile Picture
    2,297 on at

    If you want to reset all the values on the form you can use ResetForm().
    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-form

    If you want to reset only specific controls within the form you can use Reset.

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-reset

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

    HI @bazz12 ,

    Could you please share a bit more about your issue?

    Which form do you create? A Edit form in standalone canvas app or a custom form in SP list?

     

    1. If the form that you mentioned is a Edit form in your canvas app, please consider take a try with the following workaround:

    Set the OnSelect property of the "Edit" button (click it to navigate to your Edit screen) to following:

    Navigate(EditScreen, ScreenTransition.None);
    ResetForm(EditForm1);
    EditForm(EditForm1)

    Set the Item property of the Edit form to following:

    BrowseGallery.Selected

     

    2. If the form that you mentioned is the custom form in your SP list, please consider take a try with the following workaround:

    Set the OnEdit property of the SharePointIntegration control to following:

    Refresh('YourSPList'); /* <-- add this formula */
    ResetForm(SharePointForm1); /* <-- add this formula */ EditForm(SharePointForm1)

    Set the OnNew property of the SharePointIntegration control to following:

    Refresh('YourSPList');
    ResetForm(SharePointForm1); /* <-- add this formula */ NewForm(SharePointForm1)

    Set the OnView property of the SharePointIntegration control to following:

    Refresh('YourSPList');
    ResetForm(SharePointForm1); /* <-- add this formula */ ViewForm(SharePointForm1)

    then re-publish your custom form to your SP list, then check if the issue is solved.

    If the issue still exists, please consider re-move the custom form from your SP list, then re-create a new one for it, check if the issue still exists.

     

    Best regards,

  • Verified answer
    juphi17 Profile Picture
    Microsoft Employee on at

    I was having this issue too, but mostly fixed it by changing the default mode of the form to New.  This really should be fixed by default in all apps tbh.  Seeing old cached data in forms (both when viewing records, editing records and even new records) is just silly and annoying. InfoPath never had that issue.  Hopefully this gets fixed in an upcoming update so that we don't have to do this everytime we create an app.

  • psmith1117 Profile Picture
    26 on at

    I have a custom form and your suggestion worked for me. thx

  • sandog101 Profile Picture
    2 on at

    Thank you so much!! That behavior wasn't annoying at all :0)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Sorry for the cross post!

     

    Has anyone encountered this same behaviour in D365 supply chain?

     

    We have a user that when doing the tast of creating a New transfer order, the form opens already in Shipped status. The user cannot make any changes. Only one user has the issue. And in multiple environments.

     

    Thanks

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard