How to Hide the New Forms Button in SharePoint via JSON
Question details
The user needs to hide the New Forms button from a customized SharePoint list command bar using JSON formatting.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Customizing a SharePoint list interface to streamline the command bar options for users.
- Observed behavior
- The New Forms button is visible on the list view and needs to be programmatically removed from the interface.
Ensure you have at least Edit permissions on the SharePoint list to modify view settings and apply JSON formatting schemas.
Use the manageForms Key in JSON View Formatting
Applying a JSON schema with the manageForms key set to hide will remove the New Forms button from the command bar.
SharePoint allows advanced customization of the list command bar through JSON formatting. By targeting the 'manageForms' command key in the commandBarProps property, you can explicitly instruct the view to hide the New Forms button without altering backend site permissions.
Navigate to your SharePoint list, click on the View options dropdown menu located at the top right (e.g., 'All Items'), and select 'Format current view'.
At the bottom of the Format view pane that appears on the right side of the screen, click on 'Advanced mode' to open the JSON editor.
Paste the following JSON code into the editor: {"schema":"https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json","commandBarProps":{"commands":[{"key":"manageForms","hide":true}]}}.
Click 'Save' to apply the formatting. The New Forms button will instantly disappear from the command bar for this specific list view.

Streamline Your Office Tasks with WPS Office
While Microsoft SharePoint handles robust web list customizations, dealing with heavy desktop software for document editing can be overwhelming. Try WPS Office as a lightweight, fast, and feature-rich alternative for all your Word, Excel, and PowerPoint needs.
- 1. Download and Install: Visit the official WPS website to download the free, lightweight installer for Windows, Mac, or Linux.
- 2. Open Your Documents: Launch WPS Office and seamlessly open your existing Microsoft Word, Excel, or PowerPoint files downloaded from SharePoint without losing formatting.
- 3. Edit and Collaborate: Use the familiar interface to edit documents, utilize built-in PDF tools, and save your work instantly for sharing.

Frequently Asked Questions
Can I hide other command bar buttons using JSON in SharePoint?
Yes, you can hide various default buttons by identifying their specific command keys (such as 'exportExcel', 'share', or 'automate') and setting their 'hide' property to true within the commandBarProps array.
Does hiding the New Forms button revoke user permissions to create forms?
No, hiding a button using JSON view formatting only removes the user interface element from that specific view. It does not change backend permissions or restrict users who know alternative programmatic ways to access the feature.
Why isn't my JSON formatting saving in SharePoint?
Ensure your JSON syntax is strictly valid. Missing commas, unclosed brackets, improper quotation marks, or invalid schema URLs will prevent SharePoint from saving or correctly applying the view formatting.




