cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Reset values to blank

Hi,

 

I notice that whenever I iterate between different screens, forms value still remains. It doesn't get reset.

 

Eg: When I am in new item form, I key in values in some fields, click cancel and again click on add new request, form values still remains. It doesn't get reset. May I know how to reset the values in form to blank on every fresh click ?

2 REPLIES 2
Highlighted
Skilled Sharer
Skilled Sharer

Re: Reset values to blank

@Kumar9024021 

 

on the cancel button -onselect- ResetForm(EditForm);

Highlighted
Community Support
Community Support

Re: Reset values to blank

Hi @Kumar9024021 ,

 

ResetForm() function resets the contents of a form to their initial values(Defaults property). If the form is in FormMode.New mode, the form is reset to FormMode.Edit mode.  That means if your form have set default property, The ResetForm() function would have form display the default value, so the best ways is to apply ResetForm(Form1);NewForm(Form1) to button OnSelect.

Best regards,

Sik

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,367)