Here is my requirement: I've a SharePoint request tracking system. When users create a new entry, what I want is to redirect them to "Thank you! We have received your request. We will get back to you on this soon!", typical acknowledgement page :-)
So, to redirect page after form submission in SharePoint, create a custom NewForm.aspx, hide the default "Ok" and "Cancel" buttons, and then insert the below code:
Redirect NewForm EditForm Submit button:
Change SharePoint Cancel button Redirect:
Alternate approach: Using Source URL Parameter in SharePoint List Forms
If you want to send users to some other page (Doesn't matter whether the user press "Ok" or "Cancel"), SharePoint allows us to control OK and Cancel button behavior with the "source" parameter. Here is an example:
There is one issue when using Source parameter is: you will get Thank you page even when you click on "Cancel" button. Lets mitigate that by adding a jQuery: It binds a function with "Cancel" button's click event. (Edit the NewForm.aspx page and add a CEWP, just below NewForm Fields. Place this script in a text file, upload and point it from a CEWP)
You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.