Display more than three views in a SharePoint Library or List

Original source: SharePoint and Writing Blog.

  1. Navigate to the list or library.
  2. Select the gear in the upper right corner, then select Edit Page.
  3. Click Add a Web Part in the main window.
  4. Select Media and Content in the webpart Categories.
  5. Select Script Editor and click Add.
  6. Select Edit Snipped in the Script Editor webpart.
  7. Paste the following code in the Embed window.
    <script type="text/javascript"> ExecuteOrDelayUntilScriptLoaded(overrideSurfacePivotCount, 'clienttemplates.js'); function overrideSurfacePivotCount() { ClientPivotControl.prototype.SurfacedPivotCount = 4; }; </script>
  8. The number at the end of the script determines how many views to show.  Adjust this number accordingly.
  9. Select Insert.
  10. Select Stop Editing in the upper left of the SharePoint ribbon.
  11. Test the views to confirm they are working.

Last Updated

Kelly Weeks
July 28, 2019