none
Hide content type from the new menu but show in edit form RRS feed

  • Question

  • SharePoint Online, I have following 4 site content types Word Document Excel document PowerPoint document General document

    These content types are being used in a document library and "Word Document" is the default content type, When user clicks on "new" menu, all 4 content types are shown.

    I don't want to show "General document" in the new menu but I want to show in edit form, I have marked it hidden in the library settings but now it is not visible in the edit form.

    Any idea how can I hide content type from the new button but show in edit form?
    Thursday, March 5, 2015 12:46 AM

Answers

  • Hi,

    Whether you use SharePoint online 2013.

    If we hide the content type in the library settings, the content type will not be displayed in both new menu and edit form.

    To accomplish your qequirement, we need to use css code:

    style <style type="text/css">
    
    ul.ms-cui-menusection-items32 li:nth-child(4) {
        display: none !important;
    }
    
    </style>

    perhaps your environment is different with mine, you need to make a little change to the code. 

    Best Regards,

    Lisa Chen

    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have

    feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Lisa Chen
    TechNet Community Support

    Thursday, March 5, 2015 9:54 AM
    Moderator