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 / Reset Edit Form but ma...
Power Apps
Answered

Reset Edit Form but maintain last submitted changes

(0) ShareShare
ReportReport
Posted on by 90

Hi,

I have an Edit form with a save and reset button. When the user makes a change and clicks save, data is updated on the sharepoint List. However should the user click reset "ResetForm(FormEditRequest)", the last submitted changes are not reflected. The form resets to what was there when the form initially loaded, that is prior to the save action.

Can someone assist?

Categories:
I have the same question (0)
  • Ashwin7104 Profile Picture
    671 on at

    Hey @anilrambhajan - Use Refresh(DataSource) before ResetForm command.

     

  • Ram Prakash Duraisamy Profile Picture
    5,877 Super User 2026 Season 1 on at

    Hello @anilrambhajan,

     

    Click Form and Select OnSuccess Operation and Store the values like Set(lastSubmit,FormName.LastSubmit)

    Reset Button --> OnSelect --> Set(lastSubmit,Blank());

     

    if you want to Reset Whole Form 

     

    Click Form and OnSuccess event --> ResetForm(FormName);

     

    Please Mark as Answer if its helpful

    https://microsoftcrmtechie.blogspot.com

  • anilrambhajan Profile Picture
    90 on at

    This still looses the saved value

  • anilrambhajan Profile Picture
    90 on at

    This works but If I type something and do not click save, when I click reset, the typed values remain.

    I want on the reset to retrieve the latest values stored in the SharePoint list

  • Ashwin7104 Profile Picture
    671 on at

    Hey @anilrambhajan - I attempted to reproduce the problem in my test form but was unable to do so.

    // On Submit button - OnSelect
    SubmitForm(Form1);
    // On Success of Form1
    ResetForm(self);
    // On Reset Button - OnSelect
    ResetForm(Form1)

     

    I can submit the form and reset it to get the last saved value by following the steps above. Before clicking the Reset Button, I hope you double-checked the data saved in the SP list.

  • anilrambhajan Profile Picture
    90 on at

    Still no luck. Am I missing another setting that needs to be turned on? This is via "Edit Mode" of a Form control

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @anilrambhajan ,

     

    I assume you are navigating to this edit form from a main screen with a gallery. OnSelect of the Gallery you will see Select(Parent) and in Item of the Edit form it may be Gallery.Selected

     

    To solve your issue, you could try:

    1\ OnSelect of the Gallery:

    Set(varID, ThisItem.ID)

     

    2\ OnSelect of the save button:

    SubmitForm(FormEditRequest)

     

    3\ OnSuccess of the FormEditRequest form:

    Set(varID, FormEditRequest.LastSubmit.ID);
    ResetForm(FormEditRequest)

     

    4\ Item of the FormEditRequest form:

    LookUp(SPlist, ID = varID)

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • anilrambhajan Profile Picture
    90 on at

    This works. Thank you very much

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard