Forum Discussion
SharePoint List Web Parts - New UX
Hey everyone,
I am hoping I can get some assistance on the following request.
My organization's using SharePoint to manage multiple processes, but am confused with a new UX update that's come in the last few days.
Please look at the following example, which is a list with a modern calendar view:
For all of my lists, that are used as a web part on a different Site Page, have been given an ability to add a 'New Item', by selecting the title name, which's very frustrating as all of our list processes already have their own system to collect information and it seems as though I cannot turn off this functionality.
Any help would be very much appreciated.
5 Replies
The new list-title menu in the List web part is exposing SharePoint’s built-in New command even though your process uses a separate intake button. The supported control is view-level command-bar formatting. Open the source list, switch to the same public Calendar view used by the web part, choose the view menu > Format current view > Advanced mode, and add this at the root of the existing JSON: "commandBarProps":{"commands":[{"key":"new","hide":true}]}. Save, confirm the page web part uses that Calendar view, then republish and hard-refresh the page. Microsoft documents the new command key and hide property as valid for every view layout, including calendar. Merge this block with existing formatting rather than replacing it. This hides the creation command but does not remove Add Items permission. If users must be prevented from bypassing your intake process, apply list permissions that remove direct item creation; otherwise the formatting is only a user-interface control.
- bryanfrumkin220Brass Contributor
Hello,
When I hide the new button, my original button is now gone - as you noted. But, the issue is that the new button is still there and won't go away!^This is my list view within site contents after making the modification
^This is my list web part after making the modification
As you can see my original button is gone, but the "New Item" button has not disappeared.
Thank you for your assistance!- virendrakSteel Contributor
I am not sure what mechanism you are using to add data to this list. For example, if you are using a List Form or any other way for data entry, I would recommend not granting Contribute or Edit permissions on the list to users.
If users only have Read access to the list, the New Item button will not be visible, preventing them from adding items directly to the list. This helps ensure that data is submitted only through the intended form rather than directly through the list interface.