Wednesday, August 26, 2015

redirect survey for after clicking finish - using presaveaction

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;
}

1 comment:

  1. I used your code above in online sharepoint. But it only works for redirect part, the new item added not saved actually. Any suggestions about this issue? Thank you!

    ReplyDelete