cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
garthg
Level: Powered On

ResetForm Function on Cancel Button not clearing form data

I've built a form for users to enter their information and submit to an excel online table, then clear the data entriers when they click the Submit button. I've been able to make this work fine with the SubmitForm and ResetForm function.

I also have a Cancel button that's purpose is to clear the data entries and go back one page using the ResetForm and Back functions. My problem is that the Cancel button won't actually clear any of the data out.

If I set the OnReset Action of the form to ResetForm(SignupForm); Back() the Cancel button will work properly. However, once I do this I get an error message and the Submit button won't submit data.

Screenshots attached. Any help is greatly appreciated, thanks!

1 REPLY 1
Community Support Team
Community Support Team

Re: ResetForm Function on Cancel Button not clearing form data

Hi @garthg ,

I've checked the formula that you've showed. They are all right.

Could you show me the error message when you clicking the cancel button?

Could you describe more clearly about "the Submit button won't submit data"?

Do you mean that if you click the cancel button, the submit button will be invalid?

 

Here's a doc about gallery,edit form,new form's combination, you could refer this to check where you made mistake:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/working-with-forms

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

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