Creating a Contact Form Landing Page in SharePoint 2010

In SharePoint 2010, when you create an input form for a list, once the form is submitted, the user is redirected to the list.  Often, you will want to redirect the user to a landing page instead thanking them for their input or perhaps sharing with them something useful that is only to be shared after they submit a form (e.g. insider information, a welcome message, etc.).  To accomplish this is easier than you think: you simply need to append the url.

It would make sense if the parameter you pass through the url were labeled “redirect” but it’s not; the parameter is “source”.  Thus, to redirect a user to a landing page after they submit a form, simply follow this example:  <Path to List>/NewForm.aspx?Source=<Path to Landing page>

Example: http://contoso.com/Lists/<listname>/NewForm.aspx?Source=http://contoso.com/LandingPage.aspx

One caveat, this technique does not allow for using the modal window (aka “lightbox”) feature.  If /when I figure out how to do so, I’ll post it here.

Addendum: A day after posting the above, I discover an issue with the Cancel button.  The Source parameter works the same, regrettably, for both the Submit and the Cancel buttons; meaning, whether a user clicks Submit or Cancel, they are equally redirected to the Thanks page.  I need Cancel to take them elsewhere, preferably back to the previous  page.  I went looking for info on how to resolve this and discovered a great article at SharePointBriefing.com that covers my little, meager find on the Source parameter as well as the JQuery needed to resolve the Cancel issue.  Perfect.

Addendum 2: Salaudeen Rajack also provides an excellent article offering several clever ideas about this issue.

You cannot copy content of this page