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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (6,135)