Hide Ribbon from SharePoint List Display form

How to hide Ribbon from SharePoint List’s Display form

Each of the SharePoint List has three form by default:
1.DisplayForm.aspx
2.EditForm.aspx
3.NewForm.aspx

To check this Open List in SharePoint Designer and Under Form section we have three default forms as below:



In my scenario i will hide SharePoint ribbon from DisplayForm.aspx, to implement this i will Open DisplayForm.aspx in SharePoint Designer and paste the code to hide ribbon.


Code:
    <script type="text/javascript">
        document.getElementById("s4-ribbonrow").style.display = "none";
    </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

Clear DataTable on button click