In a Modern List View, I am looking for a way to hide some or all, via JSON, of the upper right corner icons for "All Items" view selector, "Open the Filters Pane", "Open the Details Pane", and the "Show Header and Navigation" Arrows.

Can this be done by amending the Formatted List View JSON that I use to hide the Command Bar elements?

  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
  "commandBarProps": {
    "commands": [
        "key": "new",
        "hide": false,
        "text": "Add a New Nomination"
        "key": "editInGridView",
        "hide": true
        "key": "share",
        "hide": true
        "key": "automate",
        "hide": true
        "key": "export",
        "hide": true
        "key": "integrate",
        "hide": true

1 Answer 1


Unfortunately it is not possible to hide "Switch view options" drop down (All items & other view options), Filters Pane, Details Pane ( i ) and Expand/Collapse content (focus mode options from top side of the SharePoint online list view using JSON command bar formatting.

Currently you can only hide the below options which are supported in key property:


Documentation: Command bar customization syntax reference - key

  • OK Thank you Ganesh. Is there any other way to keep the navigation (formerly Quick Launch) bar closed to all viewers?
    – ChasEpes
    Commented Jun 8, 2023 at 18:37
  • You want To hide navigation From all users? Commented Jun 9, 2023 at 3:08
  • Yes. On many lists, I need to keep users focused on the list. They should not wander to other site content.
    – ChasEpes
    Commented Jun 9, 2023 at 10:13
  • 1
    You can do it at site level and not at specific list/library level. Can you please Ask a new question with details and provide link here? I will try to explain the steps in detailed answer. Commented Jun 9, 2023 at 10:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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