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

Re: Resetting text box after adding info to a form

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

Re: Resetting text box after adding info to a form

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

Highlighted
Frequent Visitor

Re: Resetting text box after adding info to a form

Thank you!!! I solved the problem

Helpful resources

Announcements
secondImage

New Return to Workplace

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

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,150)