Monday, January 4, 2016

How to hide/disable ribbon bar buttons with client-side code

<script type="text/javascript">
    function hideEdit() {
        var sltval= document.getElementById("Ribbon.ListForm.Display.Manage.EditItem-Large");
        sltval.style.display = "none";
    }       
    _spBodyOnLoadFunctionNames.push("hideEdit");
</script>

No comments:

Post a Comment