Forum Discussion

Murali_Kurva's avatar
Murali_Kurva
Copper Contributor
Jul 14, 2023
Solved

Hide "Folder" and "Template" under "Upload" on SharePoint document library

 Hi Experts, We need to hide "Folders" and "Template" fields under "Upload" on SharePoint document library on SP online. Only Files option need visible when click on "Upload". 

 

By editing permissions we can, but its not visible for full control users also. Your suggestions are higly appreciated. 

 

Looking jason script like 

 

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
  "commandBarProps": {
    "commands": [
      {
        "key": "Folder",
        "hide": true
      },
      {
        "key": "Template",
        "hide": true
      }
    ]
  }
}

 

  • Murali_Kurva 

     

    This should do it 🙂 

     

    {
      "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
      "commandBarProps": {
        "commands": [
          {
            "key": "uploadTemplate",
            "hide": true
          },
          {
            "key": "uploadFolder",
            "hide": true
          }
        ]
      }
    }

2 Replies

  • Murali_Kurva 

     

    This should do it 🙂 

     

    {
      "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
      "commandBarProps": {
        "commands": [
          {
            "key": "uploadTemplate",
            "hide": true
          },
          {
            "key": "uploadFolder",
            "hide": true
          }
        ]
      }
    }

Resources