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

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
KOM_4410
Level 8

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
KOM_4410
Level 8

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

scarlson
Level: Powered On

Re: Resetting text box after adding info to a form

Thank you!!! I solved the problem

Helpful resources

Announcements
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.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

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 (3,079)