cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Resolver II
Resolver II

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
Resolver II
Resolver II

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

Thank you!!! I solved the problem

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (92,012)