Sunday, May 16, 2010

SharePoint Designer – how to redirect the OK button on NewForm.aspx

If you have created your own custom Item New form or NewForm.aspx page and want to redirect the page you go to after clicking the OK button…you can accomplish this by adding ?source= then the URL you want it to redirect to.

For example if your custom New Item page is:

http://LindaLeeChapman.spaces.live.com/NewForm.aspx

Change it to:

http://LindaLeeChapman.space.live.com/NewForm.aspx?source=http://LindaLeeChapman.space.live.com/Confirmation.aspx

Technorati Tags: sharepoint designer,redirect OK

del.icio.us Tags: sharepoint designer,redirect OK

1 comment:

  1. Linda,
    This is good stuff. How about if I want to redirect the OK button to the last page viewed? Example: I have a view that filters a list of documents. I include the edit icon in this view. Currently, a user clicks on the icon, makes adjustments, clicks ok, and this takes them to the allitems list, not the view from which they accessed edit form. This is fruistrating because they have to hit OK to save, then back, back, and refresh to see the change that they made. I really want to find a way to teach the OK button to save the edits and then redirect the user to whatever view they came from. Do you know of a way? Thanks!
    PS. I don't know how I will hear back from you using a blog post so here is my email, thomas.humphrey@pgn.com (Im kinda new to blogging, what is the correct way?)

    ReplyDelete