cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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

6 REPLIES 6
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. 

Frequent Visitor

Yes! I see it now thank you so much! 

Thanks this worked for me.

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (7,952)