Return to Snippet

Revision: 25897
at April 13, 2010 13:21 by rumremix


Initial Code
<input type="button" value="Save" name="btnSave" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={}')}" />

Initial URL


Initial Description
<input>

 

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

Initial Title
redirecting a sharepoint new form

Initial Tags
form, redirect, sharepoint

Initial Language
JavaScript