If you want to throw away what a user typed in an Edit form in Power Apps, the ResetForm function does exactly that. It takes the form control and puts every field back to the values it had before the user started typing, which makes it the one-line formula behind a Cancel button.
Without it, half-typed values sit in the Power Apps form until something else replaces them.
In this tutorial, I’ll show you how to use the power apps resetform function with a Cancel button, the Unsaved and OnReset properties, a reset after SubmitForm, a new-item form and a discard prompt, all tested on a SharePoint list.
Power Apps ResetForm Function Syntax
ResetForm( FormName )
| Parameter | Required | Type | Description |
|---|---|---|---|
FormName | Yes | Edit form control | The form to put back to its initial values. If the form is in FormMode.New, it also switches to FormMode.Edit. |
Return value: none. ResetForm is an action, so you use it only in behavior properties such as OnSelect, OnSuccess or OnVisible.
When it runs, each card goes back to its Default value, the form’s OnReset formula runs, and the form’s Unsaved property turns false. It reads no rows, so Power Apps delegation doesn’t apply.
Pro Tip: ResetForm only touches the form. Text inputs and combo boxes outside it need their own Reset call, like in this guide to clearing a text input.
When to Use the ResetForm Function in Power Apps
- A Cancel button on an edit screen that submits a form to a SharePoint list.
- The form’s
OnSuccess, so it reloads clean after a save. - Before Back or Navigate, so the form doesn’t keep abandoned edits for the next visit.
- A gallery-plus-form screen where users pick a record from the gallery and may give up halfway.
- A “Start over” button on a new-item form.
Example 1: Add a Cancel Button That Undoes Edits in Power Apps
My screen scrFnResetForm has an Edit form named frmRf on the IT Help Requests SharePoint list. I added it from the container’s + menu > Form. It shows one demo row:
| Title | Category | AssetTag |
|---|---|---|
| Demo ResetForm – Laptop docking station | Hardware | SPG-LT-3108 |
The form’s Item property picks that row:
LookUp('IT Help Requests', Title = "Demo ResetForm - Laptop docking station")
Below the form, I added a modern button labeled Cancel. In Power Apps Studio, select the button, pick OnSelect in the property dropdown left of fx, and type the formula in the formula bar. Press Play (top right) to test it in Preview.
ResetForm(frmRf)

A status label under the form shows the mode, the Unsaved flag and an OnReset counter:
"Mode: " & If(frmRf.Mode = FormMode.New, "New", frmRf.Mode = FormMode.Edit, "Edit", "View") &
" | Unsaved: " & frmRf.Unsaved &
" | OnReset ran: " & Coalesce(varRfResets, 0)
In Preview, I changed the asset tag to SPG-LT-9999 and the category to Software.

Then I clicked Cancel.

How does this work?
ResetForm told every card in frmRf to reload its Default, the saved value from ThisItem. Category went back to Hardware, the asset tag to SPG-LT-3108, and the label switched from “Unsaved: true” to “Unsaved: false”. Nothing was written to SharePoint.
The data source doesn’t matter here. ResetForm works the same way on a form bound to a Dataverse table.
Example 2: Enable Cancel Only When Something Changed
A Cancel button that’s always clickable looks odd on an untouched form. The Unsaved property tells you whether the user changed anything. I set the Cancel button’s DisplayMode to:
If(frmRf.Unsaved, DisplayMode.Edit, DisplayMode.Disabled)

Here’s the untouched form in Preview:

How does this work?
When the screen opened, the label read “Unsaved: false” and Cancel was gray. As soon as I typed one character in the asset tag, Unsaved flipped to true and Cancel turned blue, before I even left the box. After the reset, it went gray again. The same flag works for form validation checks.
Example 3: Run Extra Actions With OnReset
Every time ResetForm runs, the form’s OnReset property runs too. I used it to confirm the discard and count resets. Select frmRf, pick OnReset in the dropdown, and type:
Set(varRfResets, varRfResets + 1);
Notify(
"Your changes were discarded",
NotificationType.Information
)

I edited the asset tag again and clicked Cancel.

How does this work?
Cancel ran ResetForm(frmRf), which fired OnReset. A gray banner said “Your changes were discarded” and the counter moved from 1 to 2. The banner comes from the Notify function, and the counter is a global variable. Keep cleanup for the whole form here, not in every button.
Example 4: Reset the Form After SubmitForm
My Save button uses SubmitForm:
SubmitForm(frmRf)
The form’s OnSuccess property shows a banner and then resets the form:
Notify(
"Saved: " & frmRf.LastSubmit.Title,
NotificationType.Success
);
ResetForm(frmRf)

I changed the asset tag to SPG-LT-3110 and clicked Save.

How does this work?
Power Apps runs OnSuccess only when the save works, so a failed save keeps whatever the user typed. Here the save worked: the form reloaded SPG-LT-3110 from the list, Unsaved went false and the counter went to 3.
One surprise: the banner said “Your changes were discarded”. ResetForm fired OnReset, and its Notify replaced my green “Saved” banner. Keep OnReset quiet if you reset after saving. Read the LastSubmit property before you reset if you need the saved record.
Example 5: Start Over on a New Request
Now I clicked a New request button (NewForm(frmRf)) and typed “Demo ResetForm – Monitor arm” in Title. A Start over button runs plain ResetForm:
ResetForm(frmRf)

How does this work?
The label went from “Mode: New” to “Mode: Edit”, and the form showed the docking station row from Item again. That’s by design: in Power Apps, ResetForm switches a new form to Edit mode. To clear the typing and stay on a blank new form, chain both calls:
ResetForm(frmRf);
NewForm(frmRf)

With the fixed button, the label read “Mode: New” and every field was empty. A new form reports “Unsaved: true” even when it’s blank, so Cancel stays enabled there.
Example 6: Ask Before Discarding Changes
Users hate losing work to a misclick. This Close button asks first, but only when there’s something to lose:
If(
frmRf.Unsaved,
UpdateContext({locRfAsk: true}),
Notify("Nothing to discard", NotificationType.Information)
)
A container conRfAsk with Visible set to locRfAsk holds two buttons. Discard runs:
ResetForm(frmRf);
UpdateContext({locRfAsk: false})
Keep editing runs:
UpdateContext({locRfAsk: false})

How does this work?
The If function checks frmRf.Unsaved. With SPG-LT-4455 typed, the prompt appeared. Keep editing hid it and kept my typing; Discard put SPG-LT-3110 back. With no edits, Close only showed “Nothing to discard”. See global vs context variables for why locRfAsk is screen-scoped.
Pro Tip: Leaving the screen too? The usual Power Apps Cancel pattern is ResetForm( EditForm ); Back(). Without ResetForm, the form keeps the user’s changes for the next visit.
ResetForm vs Reset in Power Apps
| Feature | ResetForm | Reset |
|---|---|---|
| Resets | Every card in an Edit form | One control |
| Called from | Any behavior property | Inside the form for card controls |
| Changes form mode | New becomes Edit | No |
I tried Reset(DataCardValueAssetTag) from a button outside the form. Studio flagged it, and in Preview it failed: “Controls within a Form or Gallery control can only be reset from within the same form or gallery template.” Use ResetForm for the whole form, and Reset for standalone controls, like when you reset a combo box.
Common Mistakes with the Power Apps ResetForm Function
- Wrong property. ResetForm in a label’s Text shows “Behavior function in a non-behavior property.” Use OnSelect, OnSuccess or OnVisible.
- View mode. ResetForm isn’t supposed to do anything there. In my test, ResetForm on a View-mode form switched it to Edit and ran OnReset, so don’t use it to keep a form read-only.
- New form flips to Edit. Add NewForm after ResetForm if the user should stay on a new item.
- Reset before saving.
SubmitForm(frmRf); ResetForm(frmRf)in one OnSelect resets even when the save fails. Put ResetForm in OnSuccess. - Banner clash. A Notify in OnReset replaces the OnSuccess banner when you reset after saving.
Wrapping Up
The Power Apps ResetForm function takes one argument, the form, and puts every field back to its saved value. Use it on Cancel buttons, in OnSuccess, and before you leave a screen, and pair it with Unsaved and OnReset.
Browse all Power Apps functions, or read the form functions on Microsoft Learn.
Other Power Apps functions you may find useful:

Hey! I’m Bijay Kumar, founder of SPGuides.com and a Microsoft Business Applications MVP (Power Automate, Power Apps). I launched this site in 2020 because I truly enjoy working with SharePoint, Power Platform, and SharePoint Framework (SPFx), and wanted to share that passion through step-by-step tutorials, guides, and training videos. My mission is to help you learn these technologies so you can utilize SharePoint, enhance productivity, and potentially build business solutions along the way.