cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
scarlson
Frequent Visitor

Resetting text box after adding info to a form

I tried setting the reset function in data on advanced to true - but that doesn't reset the textbox value after I enter data. If I use Button3.Pressed in the reset function under data and advanced, it does reset the values, but resets before the data will move to the form so it doesn't add the information to excel.

 

This is what I have on my Next button. This works for updating my excel file but it also doesn't go to the next page which is another question. 

 

OnSelect -

If(!IsBlank(Name_1 || Address_1 || City_1 || state_1 || ln || zipp), SubmitForm(Form6),
       Navigate(Question_2, ScreenTransition.Fade,{error2_v:false}),
       UpdateContext({error1_v:true})
)

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

If you want to reset the form after submitting your ino just go to OnSuccess property of the form and add what you want to happen there. in this case:

 

ResetForm(Form1) or Reset(ControlName) if you want to reset any control ythat is outside a form.

 

Regarding navigating to the next screen it may be because you hane a "," after the navigate function instead of a ";".

i would try to put the navigate command on the OnSuccess property anyway too, so if for any reasin your form did't submit, the user won't think everything is done

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

If you want to reset the form after submitting your ino just go to OnSuccess property of the form and add what you want to happen there. in this case:

 

ResetForm(Form1) or Reset(ControlName) if you want to reset any control ythat is outside a form.

 

Regarding navigating to the next screen it may be because you hane a "," after the navigate function instead of a ";".

i would try to put the navigate command on the OnSuccess property anyway too, so if for any reasin your form did't submit, the user won't think everything is done

Thank you!!! I solved the problem

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (1,879)