redirecting a sharepoint new form


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





When used instead of my SharePoint: SaveButton above, the form saved it's data correctly, and the current page that the form was submitted from was reloaded for the user.



You could also put any URL in the __redirect={} that you want, for example __redirect={http://www.google.com} or __redirect={/news/PressReleases/}


Copy this code and paste it in your HTML
  1. <input type="button" value="Save" name="btnSave" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={}')}" />

Report this snippet


Comments


You need to login to view comments.