Forum Discussion
bilbox
Apr 02, 2019Copper Contributor
Prevent SharePoint to display the List View after create a new item via a SharePoint Form
Hi, I would like to prevent SharePoind to display a List View after adding a new item to the list through a SharePoint List. I've been looking for a solution but I have been successful so far. I'...
- Apr 03, 2019
bilbox what we do in on premise SP2013 is to add a source parameter to the link. Once the form is submitted it goes back to the source link. Maybe that will work.
https://tenant/site/lists/yourlist/NewForm.aspx?source=https://thelinktoyourpageyouwanttoreturnto.
Dont use any quotes, and if there are spaces in the return address encode them as %20
Robin Nilsson
Apr 03, 2019Bronze Contributor
bilbox what we do in on premise SP2013 is to add a source parameter to the link. Once the form is submitted it goes back to the source link. Maybe that will work.
https://tenant/site/lists/yourlist/NewForm.aspx?source=https://thelinktoyourpageyouwanttoreturnto.
Dont use any quotes, and if there are spaces in the return address encode them as %20
- bilboxApr 03, 2019Copper Contributor
- DanielaHApr 03, 2019Brass Contributor
Thanks for your suggestion.
We have tried that however it did not work in SharePoint Online as it does in On-prem.. it can be done via customized forms but I am specifically interested in the functionality for the standard forms.
- Dean_GrossApr 03, 2019Silver Contributor
DanielaHtake a look at this approach https://sharepoint.stackexchange.com/questions/70287/display-new-form-of-a-list-in-a-web-part-page
- Robin NilssonApr 03, 2019Bronze ContributorHuh, oh well. That’s standard HTML functionality so the pages must be overriding it somehow. Classic wiki pages should act the same as on premise. Are you using a modern or classic page? You just said Page so I wasn't sure. Maybe you could do a turducken type thing put the form in a classic page and embed the classic page in a modern page. Most likely wouldn’t work lol..