cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Navigation only temporary?

Hello all, hopefully you can help me. Im trying to create a simple app so people can submit maintenance requests as they see them. I am using a sharepoint list as the basis for the data, which seems to be working well, but....

 

Right after the form is submitted I Created a screen that will allow them to exit the app, or create a new ticket, but the form submission button before that doesnt stay on that screen, It only stays on it for about a half second then goes back to the form page.

 

Here is the code I have on the form submission button.

 

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

 

Any advice you have I appreciate.

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

OnSuccess is a property of the form. Therefore, if you select EditForm1 in the designer and view the 'Advanced' section in the right hand pane, you should find it there.

View solution in original post

6 REPLIES 6
Highlighted
Super User
Super User

I think your issue is the statement EditForm1.ErrorKind=ErrorKind.None is redundant.  The submitform action will not work if there is an error so I think you just need to navigate to teh new form. 

Highlighted
Community Support
Community Support

Hi @pocketens,

 

Did you mean that you want to click to sumbit a new ticket on the EditScreen and then navigate to the FinalScreen? If this is your requirement, you should just leave the OnSelect property of submission button with:

SubmitForm(EditForm1)

Then set the OnSuccess  property to the edit form to:

Navigate(FinalScreen,ScreenTransition.None)

This works for me, please have a test.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted

Sorry dumb question, but how to you access the OnSuccess property. I cannot find it. Very new to this sorry.

Highlighted

OnSuccess is a property of the form. Therefore, if you select EditForm1 in the designer and view the 'Advanced' section in the right hand pane, you should find it there.

View solution in original post

Highlighted

Awesome, totally worked thanks!

Highlighted

I'm glad that worked for you!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

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

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

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