Skip to content

Hiding "Share" option in list command bar using JSON is not working  #8546

@ganesh-sanap

Description

@ganesh-sanap

What Should Happen

I am trying to hide "Share" option in list command bar using JSON formatting. I have tried below JSON in view formatting but it is not hiding the "Share" option.

{
  "commandBarProps": {
    "commands": [
      {
        "key": "share",
        "hide": true
      }
    ]
  }
}

I have also tried this JSON specifying all selectionModes for testing.

{
  "commandBarProps": {
    "commands": [
      {
        "key": "share",
        "hide": true,
        "selectionModes": [
          "SingleSelection",
          "MultiSelection",
          "NoSelection"
        ]
      }
    ]
  }
}

What Actually Happens

As per the Command bar customization syntax reference documentation, "Share" option should be hidden from command bar when using any one of the above JSON codes.

Screenshot related to this issue:

image

Metadata

Metadata

Assignees

Labels

area:list-formattingCategory: View, row & column formatting with JSONstatus:trackedCurrently tracked with Microsoft’s internal issue tracking system. DO NOT ADD/REMOVE (MSFT managed)type:archive-old-issueIssues which are closed as tool old for active work

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions