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

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,726)