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)

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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

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