Hide Save button in New and Edit form in SharePoint 2013 list using JavaScript and CSS

There are several cases where we need to hide save button from a SharePoint List ribbon, hence to achieve this we can write a custom code to hide save button

We have written the JavaScript and css code to hide the Save button. For this Edit the page and then Insert a Script editor web part into it. Then write the below code inside the script editor web part and Save the page.



<script type="text/javascript">
    function hideEdit() {
        var edit = document.getElementById("Ribbon.ListForm.Edit.Commit.Publish-Large");
        edit.style.display = "none";
    }       
    _spBodyOnLoadFunctionNames.push("hideEdit");

</script> 

Output -






Comments

Popular posts from this blog

How to Customize exported excel's cell background color in Datatables

Populate dropdown using jquery ajax in SharePoint

Customizing SharePoint list and implementing Quick search using jQuery