[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


    Friday, April 12, 2019 8:05 AM


  • Hi,

    Try these options:

    Option 1. 

    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");


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