none
[urgent]redirect save and cancel button in newform RRS feed

  • Question

  • i need to redirect the custom new form save/cancel button to some welcome page url.please help

    Blitz

    Friday, April 12, 2019 8:05 AM

Answers

  • Hi,

    Try these options:

    Option 1. https://zareensoomro.wordpress.com/2015/06/02/how-to-redirect-on-save-button-to-another-page-in-sharepoint-2013/ 

    Option 2. Replace the SharePoint:SaveButton with the code below:

    <input type="button" class="ms-ButtonHeightWidth" value="Save" name="btnSave" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={http://thankyoupage}')}" />

    Option 3.Call your redirect functions inside  presaveaction 

    function PreSaveAction(){
         window.location.replace("your page url");
    }

    Thanks

    • Marked as answer by sree_23 Friday, April 12, 2019 10:45 AM
    Friday, April 12, 2019 9:57 AM