Contents
What is the best way to add redirect function into the save button on a newform in SharePoint 2013. When the user create a list item, he/she should be redirected to another form. Is it possible to get and parse the new generated item ID?
How to save SharePoint list after saving redirect to custom page?
I have requirement, after user save SharePoint List item Both in New form and Edit form, should redirect to default Custom form instead of allitems.aspx. Could you please let me know how we can achieve this? We can use the source parameter in the path. After user click “Save” or “Cancel” button, the page will be redirected to the destination page.
By default when the user submits an item to a SharePoint 2013 list, it redirects to the AllItems.aspx page (AllItems view page). But my requirement is after the user submits the item it should go to a Thank you page (custom site page created to display a thank you message).
How to redirect to a different page after adding new list items?
Basically that is the AllItems.aspx view URL. So when the user Submits an item to the list, then the user usually redirects to that page. Now remove everything presented after “Source=”. And then put your custom page URL which looks like below: Then remove the +new item link which is presented in the list. You can follow this article to do that.
When to redirect users to the edit form?
Sometimes, it’s important to redirect users to Edit Form. For example, you want users to save an item and still be able to continue editing it. The best option in this case would be redirect users seamlessly from the New Form to the Edit Form, once they click the save button.
Can a SharePoint form be redirected to any page?
The examples below are not applicable when the form is opened in a panel. RedirectUrl is ignored inside a panel. To redirect users to any page on the web, all you need to know is the URL of this page. It can be a page on your SharePoint site or it can be any website page.
By default once you save or edit item, it will be redirected to the respective list in SharePoint. If you don’t want that to happen and still if you want to use the same OOTB form then you can make use of the above script which helps in redirecting to different page once Save or Cancel button is clicked.