cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mauth
Level: Powered On

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
Super User
Super User

Re: Return to different screen after submit form

Hi @Mauth

 

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

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

 

 

Mauth
Level: Powered On

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?

Mauth
Level: Powered On

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.

Mauth
Level: Powered On

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.

Super User
Super User

Re: Return to different screen after submit form

Hi @Mauth

 

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

Mauth
Level: Powered On

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
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Demo Extravaganza Championship Voting Open

Voting Ends: October 30, 2019!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 338 members 5,438 guests
Please welcome our newest community members: