SharePoint Online_How to hide view dropdown in command bar in list webpart

Copper Contributor

I have a list view in a list webpart and we need to hide the view dropdown and the info button in the command bar....see below. What is the best way to accomplish this?




3 Replies
You can do it by formatting the view only. It won't be applicable to the whole list, just a particular view which you have created. I would suggest not to hide the view drop down since the users/owners won't be able to switch between the views.
You would require knowledge of JSON, owner level access and name of the elements which you want to hide to perform the changes.
Sharing the link of a YouTube video for your reference.
Hope it helps




Thanks for the quick response........I do not want users switching to other views.   The requirement is to hide the views dropdown from the command bar.

@MHarper74 Unfortunately you can not hide using OOTB functionality. You have to use SPFX to hide "Switch View Options".



Below explained how to do.