How to Use Power Apps Reset Function?

Recently, I was working with a Power Apps canvas app. I had a requirement to reset the various controls or a Power Apps form.

The Power Apps Reset function can delete all data entered into Power Apps control input fields or forms and restore them to their default state.

In this Power Apps tutorial, I will explain How to use Power Apps Reset function.

  • Reset Power Apps radio control
  • How to reset multiple controls with the Reset function
  • Power Apps Reset property using variable
  • Power Apps Reset form after submit
  • Power Apps clear form after submit [With default values]

Power Apps Reset Function

The Power Apps Reset function is a useful feature that allows users to clear all data from a form or a screen.

This function can reset all the controls and fields on a screen to their default values, which can be helpful when users want to clear all the data they have entered on a form.

Syntax:

Reset(ControlName);

How to Use Power Apps Reset Function

Now, let’s check how to use this Power Apps reset function with different examples:

Example 1: Reset Power Apps Radio Control

Suppose on my Power Apps screen, I have a Button Control and a Radio Control [“Male,” “Female,” “Other”].

Let’s say a user selects a particular item from the radio button, and then he/she wants to discard the changes for some reason; then, they can click on the RESET button.

Once the user taps on the RESET, the radio control will reset, and the user-selected value will be removed.

How to Reset Power Apps Control

Follow the below steps to achieve this:

  • Sign into Power Apps with your valid Microsoft 365 Credentials.
  • Create a Blank canvas app -> On the Power Apps screen, Insert a Radio control -> Set its Items property to:
["Male," "Gender," "Female"]
Reset function in Power Apps
  • Insert a Button control -> Set its OnSelect property to:
Reset(rad_EmpGender);

Where,

  1. rad_EmpGender= Radio button control name
Reset the Power Apps Control
  • Once your app is ready, SavePublish, and Preview the app. If a user chooses a value from a radio control and then clicks on a Reset button control, the selected value will be eliminated.
Reset Power Apps control

As per the above example, we saw how to reset the single control. Now, let us see how to reset the multiple controls in Power Apps.

Example 2: Power Apps reset multiple controls with the Reset function

I have added two additional controls on the Power Apps screen: Text input and Date picker controls. Here, the date picker has a default value of Today().

Let’s say a user provides information on all the control input fields, and then he/she wants to discard the changes for some reason; then, they can click on the RESET button.

Once the user taps on the RESET, all the controls will reset, the user-provided data will be removed, and the date picker control will reset to its default value.

Resetting Power Apps Multiple Controls

Follow the below steps to achieve it:

  • On the Power Apps screen, Insert a Text-input control as shown below:
Reset Multiple controls with Reset function in Power Apps
  • Insert a Date picker control -> Set its Default property to:
Today()
Power Apps Reset Multiple controls using Reset function
  • Select a Button control -> Set its OnSelect property to:
Concurrent(
    Reset(txt_EmpName),
    Reset(rad_EmpGender),
    Reset(dte_EmpStartDate)
);

Where,

  1. txt_EmpName = Text-input control name
  2. rad_EmpGender = Radio button control name
  3. dte_EmpStartDate = Date-picker control name
Reset Multiple controls using the Reset function in Power Apps
  • SavePublish, and Preview the app. When the user provides the information and clicks on the Reset Button, it will clear all data entered in the input fields and reset the date picker to its default value.
Resetting Controls in Power Apps

Power Apps Reset Property

This is an alternative approach to resetting the Power Apps controls: “Reset property.”

When resetting multiple controls simultaneously, it is more convenient to use the Reset property instead of creating a Reset function for each control.

Let us see how to achieve it:

Power Apps reset property using variable

I will take the same example of resetting a multiple control; instead of using a Reset function, I will use the Reset property.

For the same above example, Select a Button control -> Set its OnSelect property:

Set(varReset, true);Set(varReset, false);

Where,

  1. varReset = Provide the variable name
Power Apps Reset property using variable

Later, provide this variable name to all the control’s Reset property.

Power Apps Reset property based on button click

Suppose a user decides to clear all data entered in the input fields; they can click on the button control. It will clear all the fields at once.

Reset Property in Power Apps

Power Apps ResetForm after submit

Power Apps provides another function to reset, which is “ResetForm.” This function is utilized only in the Power Apps form.

By implementing this function, we can confirm user data is properly recorded and that the form is always ready for the next entry.

To reset a Power Apps form, we will use the below syntax:

ResetForm(FormControlName);

Let’s check how to clear the Power Apps form after submission.

For example, I have a SharePoint list [Employee Details] that has various columns like:

Column NameData type
Employee NameTitle
Employee GenderChoice [“Male,” “Female,” “Other”]
Employee Department Choice [“HR,” “IT,” “Marketing,” “Finance”]
Employee Handled ByPerson or group
Is Still WorkingYes/No
Power Apps Reset form after submit

Per my requirement, the Power Apps form is connected to the above SharePoint list. The form has different controls.

Whenever the user submits the Power Apps form, the form should be ready for the next entry.

Reset form after submit in Power Apps

Follow the below steps to achieve this:

  • Sign into Power Apps with your valid Microsoft 365 Credentials.
  • Create a Blank canvas app -> On the Power Apps screen, insert an Edit form -> Set its DataSource property to:
'Employee Details'

Where,

  1. Employee Details = SharePoint list name
How to refresh Power Apps form after submit
SubmitForm(Form1);ResetForm(Form1);

Where,

  1. Form1 = Form Control Name
How to reset form after submit in Power Apps
  • Once your app is ready, SavePublish, and Preview the app. When the user submits the Power Apps form, the form is ready for the next entry.
Power Apps clear form after submit

This is how I achieved this by resetting the Power Apps form after submission. If the Power Apps form has default values, you must display the default values after submitting the form. To achieve it, follow the below steps:

Power Apps clear form after submit [With default values]

If the Power Apps form has different controls with its default values.

Power Apps clear form after submit with default values

When the user submits the data, the form should get ready for the next entry with its default values, as shown below:

Power Apps reset form after submit with default values

To achieve it, we should use the same above syntax as:

ResetForm(frm_EmpDetailsDefault);

Where,

  1. frm_EmpDetailsDefault= Form control name
Clear Power Apps form after submit

When the user submits the Power Apps form, the form is ready for the next entry with its default values.

How to clear Power Apps form after submit

This is how to clear the Power Apps form after submitting it and display its default values.

Note,

Also, remember that the Power Apps Reset function does not delete any data from a data source. It only clears the data that is displayed on the screen.

Conclusion

Power Apps Reset function() allows users to easily clear all data from a form or a screen, making it easier to start over or change the data they have entered.

I hope this Power Apps tutorial helped you reset the Power Apps radio control and how to reset the Power Apps multiple controls in Power Apps.

Rather than that, an alternative approach to reset the Power Apps multiple control is “Reset property,” and I have shown you about Power Apps reset property using a variable.

Lastly, I have covered resetting the Power Apps form after submission.

Additionally, you may like some more Power Apps tutorials: