locked
How to hide the edit ribbon in newform.aspx of a custom list,kindly help me RRS feed

  • Question

  • Hi Guys,

    Can anyone help me .I want to hide edit ribbon in newform.aspx of a custom list.


    with regards Ravichandra

    Monday, August 13, 2012 11:29 AM

All replies

  • Hi Ravi,

    Welcome to the forums.

    You can hide the ribbon with some JScript.  There's a fair few on the Internet, but this one from an MSFT blog should do the trick.

    http://blogs.msdn.com/b/sharepointdev/archive/2012/04/30/how-to-hide-the-ribbon-in-sharepoint-2010-rajeswari-mohandas.aspx


    Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/

    Monday, August 13, 2012 1:30 PM
    Answerer
  • Hi,

    Here is a way to remove or hide the ribbon area from user with lease privilege:

    1) Open your SharePoint master page

    2) Locate this line:
    <div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle">

    3) Change it to:
    <div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle" style="display:none">

    4) Now find the end of the “s4-ribbonrow” tag and add following block right after it:
    <Sharepoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" PermissionsString="AddAndCustomizePages">
    <
    script type="text/javascript">
    document.getElementById("s4-ribbonrow").style.display = "block";
    </script>
    </
    Sharepoint:SPSecurityTrimmedControl>

    5) Save the new master page and publish it.

    Another way is to check “Yes” option of the “Show and Hide Ribbon” in the Navigation setting page that is under the Site Settings.

    Here are two articles can be referred to.

    How To Hide Ribbon From Users Without Edit Page Privilege

    http://blogs.msdn.com/b/zwsong/archive/2010/04/29/how-to-hide-ribbon-from-users-without-edit-page-privilege.aspx

    How do I hide the Ribbon in SharePoint 2010

    http://blog.incworx.com/blog/who-is-the-best-chicago-sharepoint-firm/hiding-the-sharepoint-ribbon-in-sharepoint-2010


    Ivan-Liu

    TechNet Community Support

    Wednesday, August 15, 2012 7:04 AM
    Moderator
  • thanks for the reply

    with regards Ravichandra

    Friday, September 7, 2012 9:12 AM
  • thanks steven

    with regards Ravichandra

    Friday, September 7, 2012 9:13 AM
  • Hi all,

    I just want to hide the edit button of a newform.aspx of my custom list(i mean only for that list not others)


    with regards Ravichandra

    Friday, September 21, 2012 10:19 AM
  • Why hide it?  Just use the read only permission group.

    Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/

    Friday, September 21, 2012 10:51 AM
    Answerer
  • Bad link


    • Edited by CrjangelFG Thursday, January 10, 2013 7:47 PM removed name
    Thursday, January 10, 2013 7:47 PM
  • Hello,

    It works for me:

    <style>
    .ms-cui-tabBody li
    {
    display:none;
    }
    </style>



    For anything related to SharePoint https://www.fiverr.com/rashu268

    Friday, February 24, 2017 3:49 PM