In my new_form I tryed redirect to another page after press save or cancel button, but the attribute "RedirectUrl" don't work... (I remember that this worked perfectly in olds projects..)

my code:

<SharePoint:SaveButton runat="server" ControlMode="New" id="savebutton2" RedirectUrl="URL_destino"/>

Some ideia to redirect url after save or cancel event?

1 Answer 1


In the URL, you need to add Source, so for instance:

https://<SPUrl>/sites/<siteUrl>/lists/<listName>/Forms/newForm.aspx?Source=<Redirect URL>


https://<SPUrl>/sites/<siteUrl>/<documentLibraryName>/Forms/newForm.aspx?Source=<Redirect URL>

Please see the alternate approach at Redirect Users to Thank You page from NewForm.aspx after form submission. The same will apply if cancelled.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.