cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Fields
Helper V
Helper V

Submit form goes Back, instead of navigate to the screen i want

Hello guys again,

 

I have yet another problem, but i think it's a bug...

When i say:

SubmitForm(EditForm1),Navigate(Screen2, ScreenTransition.None)

The form will submit, but it won't change to the next screen, in fact go to the screen before, and i want to move him at the other screen... Is any fix for this?

I have tried OnSuccess, but it says it doesn't exist...

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
CarlosFigueira
Power Apps
Power Apps

Take a look at the OnSuccess property of the EditForm; if you have created your app using the "App From Data" wizard, by default it's set to the expression 'Back()', which will pop the navigation stack:

ForumPost-001.PNG

Can you make sure that if you're calling the Navigate function when you call SubmitForm that you don't have the form's OnSuccess property set to anything (i.e., either clear it or set it to 'false' like the other actions in the form). Otherwise the navigate call will be made, but the back function will bring you back to the original page.

 

Another alternative is to use the OnSuccess call to navigate to your screen directly: use the Navigate function on the form itself, and remove that from the action handler that contains the SubmitForm call.

EditForm1.OnSuccess: Navigate(Screen2, ScreenTransition.None)

View solution in original post

8 REPLIES 8
CarlosFigueira
Power Apps
Power Apps

Take a look at the OnSuccess property of the EditForm; if you have created your app using the "App From Data" wizard, by default it's set to the expression 'Back()', which will pop the navigation stack:

ForumPost-001.PNG

Can you make sure that if you're calling the Navigate function when you call SubmitForm that you don't have the form's OnSuccess property set to anything (i.e., either clear it or set it to 'false' like the other actions in the form). Otherwise the navigate call will be made, but the back function will bring you back to the original page.

 

Another alternative is to use the OnSuccess call to navigate to your screen directly: use the Navigate function on the form itself, and remove that from the action handler that contains the SubmitForm call.

EditForm1.OnSuccess: Navigate(Screen2, ScreenTransition.None)

View solution in original post

Hi @CarlosFigueira,

 

Oh... i didn't noticed that there, it was my mistake ^^

It works properly now! Thank you!

Hi @CarlosFigueira ,

 

I know this solution is a few years old, but i am currently having the same problem.

 

When I use the SubmitForm Function or the Navigate function separately they work. But when I use them together e.g. SubmitForm(EditForm1); Navigate(Screen2)  then it flickers to Screen 2 but then straight back to EditForm1.

 

In your previous solution you mention to change the On Success action, however this action is not recognized and is no where to be seen in the advanced property tab. 

 

I hope you can suggest a solution for me, I appreciate your time!

Hi @MubG ,

 

The OnSuccess action exists when you select the EditForm.

 

I hope this helps,

Thank you. 

MubG
Frequent Visitor

Yes! I see it now thank you so much! 

Thanks this worked for me.

on my form: onsuccess by default there is "false" only still it goes to previous screen after is submit form.

on my form: onsuccess by default there is "false" only still it goes to previous screen after is submit form.

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,041)