cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Return to different screen after submit form

New to powerapps.  I need to navigate to a different screen after a form is submitted.  If I have just SubmitForm(EditForm1) it will return to the previous screen but I want it to go to a different screen.  When I change it to SubmitForm(EditForm1); Navigate(Screen1,ScreenTransition.Fade) it goes to Screen1 and then immediately back to the Editfrom screen.  What am I missing or doing wrong?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
hpkeong
Level 10

Re: Return to different screen after submit form

Hi @Anonymous

 

Sorry for interrupting.

 

The reason is: Default setting of:

OnSuccess = Back()

OnFailure = false

Please verify.

 

May you have the Navigation formula written/changed to \:

OnSuccess.Navigate(Screen1, .....), or

OnFailure.Navigate(Screen2, ...)

 

Hope this helps.

hpkeong

View solution in original post

18 REPLIES 18
Thomas_F
Level: Powered On

Re: Return to different screen after submit form

The formula I would use for this is:

 

SubmitForm(EditForm1);If(EditForm1.ErrorKind = None,Navigate(Screen1,ScreenTransition.Fade))

 

Try pasting that formula in and see if it works.

 

Something to be aware of is ensuring that you have the correct permissions for the destination you are trying to write the information to.

 

 

Anonymous
Not applicable

Re: Return to different screen after submit form

So that formula takes it back to a the same screen that having just the SubmitForm(Editform1) does.  It doesn't go to Screen1.

Thomas_F
Level: Powered On

Re: Return to different screen after submit form

What are you using as your data source?

Anonymous
Not applicable

Re: Return to different screen after submit form

A sharepoint list

Thomas_F
Level: Powered On

Re: Return to different screen after submit form

I've had a problem before where within the sharepoint list on certain columns you may have criteria which isn't being met and so when you submit the form sharepoint is rejecting the changes. This could be something like a column requires information to be filled in and when you're sumbitting the form that field is being left blank which is leading to the rejection.

 

Go into your sharepoint list settings and check through each columns setting to ensure the details you are entering in on the form are meeting the criteria for that column.

Anonymous
Not applicable

Re: Return to different screen after submit form

Everything looks fine in the sharepoint, although I am new at this and could be missing something.  It's recording all the information correctly and I'm not getting an error, just going to the wrong screen.

Highlighted
hpkeong
Level 10

Re: Return to different screen after submit form

Hi @Anonymous

 

Sorry for interrupting.

 

The reason is: Default setting of:

OnSuccess = Back()

OnFailure = false

Please verify.

 

May you have the Navigation formula written/changed to \:

OnSuccess.Navigate(Screen1, .....), or

OnFailure.Navigate(Screen2, ...)

 

Hope this helps.

hpkeong

View solution in original post

Anonymous
Not applicable

Re: Return to different screen after submit form

That was it.

 

thx

Fields
Level: Powered On

Re: Return to different screen after submit form

Hey,

 

I am sorry, i have tried this and made a error... Capture.PNG

Where do i change this really? I think i am messing something

 

Fields

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (6,174)