Display more then three views in SharePoint 2013 or SharePoint 2016 list

Display more then three views in SharePoint 2013

In this post, we will discuss how we can show more than three views in SharePoint 2013 list or library. This will work for both SharePoint 2013 and SharePoint 2016 also. If you have not started SharePoint 2016 yet, you can see some new features, if you want to install SharePoint 2016, then you can see the SharePoint 2016 installation steps.

By default if you open any list or document library, then you can see it will see 3 views in the page and rest of the views you can see after clicking on the (…) like below:

Display more then three views in SharePoint 2013
Display more than three views in SharePoint 2013

As you can see in this example, you will be able to see 3 links like All Items, View-1 & View-2 and rest two views we can see after clicking on the … button.

If you are new to SharePoint, you can check how to create custom views using SharePoint designer 2013 and also you can check how to Create View in lists or libraries CSOM PowerShell Office 365 SharePoint 2013.

If you are new to SharePoint 2016, then you can check SharePoint 2016 List View Auto Indexing Automatic Index Management and also you can see how to delete List View using PowerShell in SharePoint 2013 and Set List View as Default view using PowerShell SharePoint 2013.

To resolve this issue, open the page in edit mode in the browser, then in edit mode click on Add a Web Part and then from the web part categories select Media and Content and then choose Script Editor web part like below:

Display more then three views in SharePoint 2013
Display more then three views in SharePoint 2013

Then click on EDIT SNIPPET and then put the below code. You can check out this article on Script editor web part in SharePoint 2013.

<script type=”text/javascript”>
ExecuteOrDelayUntilScriptLoaded(IncreaseSurfacePivotCount, ‘clienttemplates.js’);

function IncreaseSurfacePivotCount() {
ClientPivotControl.prototype.SurfacedPivotCount = 4;
};
</script>

Then Save the page.


Once you refresh the page you can see 4 list views like below:

Hope this will be helpful.


You May Also like the Following SharePoint Online Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →