How to disable change list view in SharePoint lists using only CSS




Sometimes you may need to show information in SharePoint list only how you want it but not users. You create a list view and hope than other users will not change anything. But to be more assured that list view will be the same as you created it, you need to disable a change of list view in SharePoint list.

You can rather easily disable option for changing views in SharePoint lists using only CSS.

For this you need to make next steps:

1. Create a list view and make it default

2. Go to edit mode of a page with necessary view

3. Add Content editor webpart to a page and insert as clean HTML-code a code below:

<style>
#Ribbon.List.CustomViews {
        DISPLAY: none
}
</style>

4. Save your page.

Now you can see that there’s no more option to change list view in ribbon.

 




No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment





MarkiMarta.com. Notes of web-specialist
Since 2009
18+