Hiding the ‘Forms’ button in a SharePoint list view using List Formatting

michelcarloModern Workplace5 months ago9 Views



I got the following request from a community member:

Hi, I want to hide forms from the command bar. Please advise

We can achieve this by using SharePoint list formatting

Code to use

You can use the following JSON Formatting snippet to hide the Forms button in a SharePoint list (bear in mind all the views need to have the formatting applied if you want to always hide it).

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

Results

After applying this JSON formatting code in a SharePoint list view, the Forms button is hidden:

Conclusion

By using JSON formatting we can easily hide the Forms button in a SharePoint list.

Reference

Command bar customization syntax reference – Microsoft Learn

The post Hiding the ‘Forms’ button in a SharePoint list view using List Formatting



Source link

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
February 2025
MTWTFSS
      1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28   
« Jan   Mar »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...