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

Submit form and navigate to different screen (Not SharePoint allitems)

When submit a form I am using this: SubmitForm(SharePointForm1). Item is saved in SharePoint List.

But I want the users navigated to another site than the allitems.aspx.

 

i want them navigated to a blank page with a text. (Thanks for submitting the form)

 

Regards

Torben

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Support Team
Community Support Team

Re: Submit form and navigate to different screen (Not SharePoint allitems)

Hi @torbenbj,

 

yes, that is possible with the launch command.

You should

1. create a SharePoint page for the Message "Thanks for submitting the form", save the Page URL, 

2. Click Custom Form under PowerApps tab from the SharePoint List,

3. Click the SharePointIntegration, under the OnSave property, add the following code:

Lanuch("PageURL")

For example:

SubmitForm(SharePointForm1);Launch("https://tenant.sharepoint.com/Testing/SitePages/Thanks%20for%20Submitting!.aspx")

4. Once published to SharePoint list, make sure you have the Browser set to always allow pop out for your SharePoint site.

 

Doing this will allow the page naviagted to the "Thanks for submitting " page once new item has been created.

 

Regards,

Michael

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

View solution in original post

torbenbj
Level: Powered On

Re: Submit form and navigate to different screen (Not SharePoint allitems)

Many thanks Michael

 

It works 🙂

 

Regards

 

Torben

View solution in original post

6 REPLIES 6
KroonOfficeSol
Level 10

Re: Submit form and navigate to different screen (Not SharePoint allitems)

I think you can add a screen with the text and add -
; navigate (new screen, none) - behind the submit form text.
Community Support Team
Community Support Team

Re: Submit form and navigate to different screen (Not SharePoint allitems)

Hi @torbenbj,

 

yes, that is possible with the launch command.

You should

1. create a SharePoint page for the Message "Thanks for submitting the form", save the Page URL, 

2. Click Custom Form under PowerApps tab from the SharePoint List,

3. Click the SharePointIntegration, under the OnSave property, add the following code:

Lanuch("PageURL")

For example:

SubmitForm(SharePointForm1);Launch("https://tenant.sharepoint.com/Testing/SitePages/Thanks%20for%20Submitting!.aspx")

4. Once published to SharePoint list, make sure you have the Browser set to always allow pop out for your SharePoint site.

 

Doing this will allow the page naviagted to the "Thanks for submitting " page once new item has been created.

 

Regards,

Michael

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

View solution in original post

torbenbj
Level: Powered On

Re: Submit form and navigate to different screen (Not SharePoint allitems)

Many thanks Michael

 

It works 🙂

 

Regards

 

Torben

View solution in original post

BB9
Level: Powered On

Re: Submit form and navigate to different screen (Not SharePoint allitems)

I tried this but it opens up the specified URL in a new tab and it takes it back to the default view. Is there a way we can make this to work - When a user saves or edits and saves the form, they will be redirected to a different page or URL instead of the list at all. Thanks!

Highlighted
Anonymous
Not applicable

Re: Submit form and navigate to different screen (Not SharePoint allitems)

You know you can also use the OnSuccess option and then Notify ("Thanks for submitting the form")

BB9
Level: Powered On

Re: Submit form and navigate to different screen (Not SharePoint allitems)

OnSuccess works - I used Reset and then notify, so it stays in the same page after a succesful save.

 

However, But when the user clicks Cancel, it redirects them back to the 'AllItems' or the defalut view set.

 

We can't use OnFailure because there are validations for few fields in the form, so, If I just there is a validation error, we still want to have the user stay on the form with the user info they entered. If we use OnFailure - this takes into account everytime a validation fails as well. 

 

If they click cancel, the user should not be redirected to the 'AllItems'/defalut view, but instead stay on the initial new form page after clearing everything they entered. 

Helpful resources

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

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

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 (9,572)