6

I have a document library where I use document sets. The setting 'Make "New Folder" command available?' is set to NO. When I however edit the properties of a document set, 'Folder' is available in the Content Type dropdown...

How can I hide 'Folder' in the Content Type dropdown? Is it a bug in document sets?

0

Look in the settings of the document library for the Folder content type, under the Content Types section.

Click on it and hit "delete" or "remove" (not sure exactly what the link says right now with no access to an SP environment)

  • There is no Folder in the content types of my document library. in the advanced settings of my document library I have already disabled folder creation. "Make "New Folder" command available?" is set to "No" – d d Jun 3 '13 at 7:40
  • I think it's a bug in Sharepoint, isn't it? – d d Jun 5 '13 at 10:05
  • You can delete it using jquery. – XristosK Sep 6 '14 at 22:33
0

I'm using following JavaScript attached to EditForm via JSLink property on Classic UI pages:

(function () {
    var OnPostRender = function (ctx) {
        if (ctx.ListSchema.Field[0].Name == "Title") {
            $(String.format("#WebPart{0}", ctx.FormUniqueId))
                .find("select[id$='_ContentTypeChoice']")
                .parents("tr:first")
                .hide()
            ;
        }
    }
    var ctx = {};
    ctx.OnPostRender = OnPostRender;
    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(ctx);
})();

Or, open list with SharePoint Designer and remove Folder content type attached to the list

Or, use PowerShell for accessing the list and deleting Folder content type

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.