0
votes

I am trying to hide/disable Edit/View button from sharepoint list ribbon, but not able to.

Please let me know if someone can help me. I can only use JavaScript.

Also, Please note that I want to hide only two buttons(Edit/View) not the whole ribbon.

1

1 Answers

0
votes

You can use javascript to Hide the Ribbon as shown below.

<script type="text/javascript">
function hideRbn()
{
var elmID = document.getElementById("RIBBONID");
elmID.style.display = "none";
}
_spBodyOnLoadFunctionNames.push("hideRbn");
</script>