cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bbsin
Post Prodigy
Post Prodigy

help - success screen sometime have; sometime dont show??

hi

 

I have a form and submit button ; I have put.

 

submit button - Onselect - SubmitForm(Form1);

Form - OnSuccess - If(Form1.Valid,SubmitForm(Form1); ResetForm(Form1); Navigate(SuccessScreen,ScreenTransition.Cover))

 

Once I submit my form.. sometime the Success screen display ;sometime it didnt.. why??

1 ACCEPTED SOLUTION

Accepted Solutions

@bbsin If on success, you want to reset the form and go to the success screen, put this code in the 
OnSuccess:

ResetForm(Form1); Navigate(SuccessScreen,ScreenTransition.Cover)

View solution in original post

9 REPLIES 9
CNT
Super User
Super User

@bbsin 

Firstly I don't understand, why you are submitting twice

Once in the submit button - Onselect - SubmitForm(Form1);

Then again in the Form - OnSuccess - If(Form1.Valid,SubmitForm(Form1); ResetForm(Form1);

 

Could you explain that?

bbsin
Post Prodigy
Post Prodigy

@CNT 

 

I saw the video someone mention to put in Onsuccess as sometime on failure if we use submit and navigate to success screen, it will just not send and user will not know..   and it will think that it's successful submitted but it's not.

 

@bbsin My question was, Why are you submitting twice (2 times), once in the OnSelect() of the Button and then again in the OnSuccess. This will go on in an endless Loop!!!

CNT
Super User
Super User

@bbsin Are you still interested in receiving solution for this?

bbsin
Post Prodigy
Post Prodigy

@CNT 

 

Oh .. So I remove on Success then, right? 

but how to ensure that the submission is success and not just navigate to success screen?  As earlier I try to submit, without the syntax "OnSuccess",  it show the success screen  but data was actually not submitted 

@bbsin If on success, you want to reset the form and go to the success screen, put this code in the 
OnSuccess:

ResetForm(Form1); Navigate(SuccessScreen,ScreenTransition.Cover)

View solution in original post

bbsin
Post Prodigy
Post Prodigy

@CNT 

 

Ok thanks. will do that. 

@bbsin Did it work?

bbsin
Post Prodigy
Post Prodigy

hi @CNT 

 

Yes it did.  Thanks. 

 

🙂

 

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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