hijack submit or save button on sharepoint list form to redirect

/ Published in: XSLT
Save to your folder(s)

Comment out the SharePoint:SaveButton tag and replace with input tag

Copy this code and paste it in your HTML
  1. <!--<SharePoint:SaveButton runat="server" ControlMode="New" id="savebutton2"/>-->
  2. <input name="Button1" type="button" value="Submit" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={/thanks-for-submission.aspx}')}" />

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.