Redirect is happening befor the save
Hey everyone... again :P So With the help of Hemendra I have a custom redirect on the NewForm.aspx page. http://social.msdn.microsoft.com/Forums/en-US/sharepointgeneral/thread/3a1b8ae1-b551-464e-b36b-ef647c9a649b But, I just found out that it is redirecting before the actual save. I didn't see this earlier because I was to happy with it actually redirecting ;) So, considering its redirecting now with the code placed in a CEWP: <script> function PreSaveAction() { var srcUrl=GetSource(); var newSrcUrl = "http://www.google.com"; var i = aspnetForm.action.lastIndexOf(srcUrl); aspnetForm.action = aspnetForm.action.substring(0,i) + newSrcUrl ; return true; } </script> Is there away to trigger this after the actual save or overwriting the save button's redirect?
November 25th, 2010 8:03am

Nevermind, apparently fixing the redirect is easy by adding the "&source=http:RedirectURL" behind the current URL.
Free Windows Admin Tool Kit Click here and download it now
November 25th, 2010 8:14am

Please do not mark your own question as answered by yourself. Kris Wagner, MVP, MCITP, MCTS Twitter @sharepointkris Blog: http://www.sharepointkris.com/blog
November 26th, 2010 12:12am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics