Reset SharePoint list form to default

X

Privacy & Cookies

This site uses cookies. By continuing, you agree to their use. Learn more, including how to control cookies.

Got It!
Advertisements

One of the most useful features to provide in a Form Control in a Canvas Power App is the ability to Clear/Reset a Form and Clear a Field value.

Lets look at how Power Apps existing feature can help you achieve this.

Clear Field

Lets say Description field is a lengthy field and often times, you want to clear the entire field instead of just backspacing the entire field.

  1. Lets say Description is a DataCardValue in a typical form. Usually Descriptions are lengthy and need to be cleared if you go wrong. So, every form field value is stored in a data card value field.

  2. On the right hand properties, look for Clear Field option from the list of Text Input properties.

  3. Notice that a X appears on the field when in focus/active. So when you make a mistake in a field, click on it to clear that field.

  4. And it gets cleared.


    This didnt work in Multi-Line Text Box. Not sure if its a bug or not supported yet. Ill confirm and update here.

Reset Form

Fairly basic way to clear out an entire form is to use a button to do so.

  1. A suitable approach is to add a ResetForm[] function. Ive put a sample button that denotes a reload/reset logo which I selected from Icons.


  2. Now, lets say I want to clear this form.

  3. The form will be cleared.

Heres a short YouTube video I created to demonstrate this

Hope this quick tip helps!!

Here are some more Canvas Power App posts you might want to check

  1. Get Dynamics 365 field metadata in a Canvas App using DataSourceInfo function | Common DataService
  2. Debug Published Canvas Power App with other users using Monitor | PowerPlatform
  3. Download a File from a Canvas Power App using a button | PowerPlatform
  4. AddColumns[] function to dynamically add columns to a Data table in Canvas Power App | SharePointList
  5. Implement real-time search in Gallery of CDS records in a Canvas Power App | PowerPlatform
  6. Log Canvas Power App telemetry data in Azure Application Insights | PowerApps
  7. Call HTTP Request from a Canvas Power App using Flow and get back Response | PowerAutomate
  8. Implement character length validation in a Canvas Power App | PowerPlatform
  9. Send a Power App Push Notification using Flow to open a record in Canvas App | PowerAutomate
  10. Count of total CDS records returned in a Canvas Power App connection [QuickTip]

Thank you!

Advertisements

Share this:

Video liên quan

Chủ Đề