SOLVED

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

Copper Contributor

 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". 

 

Murali_Kurva_0-1689346669958.png

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
      }
    ]
  }
}

 

2 Replies
best response confirmed by Murali_Kurva (Copper Contributor)
Solution

@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
      }
    ]
  }
}
Thank you, it working as we expected.
1 best response

Accepted Solutions
best response confirmed by Murali_Kurva (Copper Contributor)
Solution

@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
      }
    ]
  }
}

View solution in original post