Redirect SharePoint Form to a Different Page

As part of a custom SharePoint application, you will probably want your New/Edit forms to redirect to a different page other than the default List view. The default SharePoint redirect displays the view for the List you are modifying…following this quick tip to redirect to any page after successful List item creation or modification:

Source=

The trick is to define a querystring variable when calling the New/Edit form and set the URL of the page you wish to be redirected after the Item is created/modified. The querystring is “source”.

In your hyperlink, set the page similar to the example below and when you click Ok on the form, you will be redirected to that page instead:

<a href="http://mysharepoint/AppPages/custom_edit.aspx?Source=http://mysharepoint/AppPages/custom_list.aspx">Edit</a>

 

I’m out…

About aaron

IT is not just a job but also a passion. Everything I have accomplished, both personally and professionally, has been generally entertaining, bordering on fun. Some of my projects, such as working with SharePoint Services workflow actions in Visual Studio or building a custom iSCSI SAN using the OpenSolaris, ZFS and COMSTAR, has been quite rewarding. You may think nerd...I think developing a new trend!