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

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
Highlighted
Helper III
Helper III

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.

 

 

Highlighted
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.

Highlighted
Helper III
Helper III

Re: Return to different screen after submit form

What are you using as your data source?

Highlighted
Anonymous
Not applicable

Re: Return to different screen after submit form

A sharepoint list

Highlighted
Helper III
Helper III

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.

Highlighted
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
Community Champion
Community Champion

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

Highlighted
Anonymous
Not applicable

Re: Return to different screen after submit form

That was it.

 

thx

Highlighted
Helper V
Helper V

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
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,287)