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
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,752)