Hide default “There are no items to show in this view of the list.” message using Jquery

Updated: Sep 15, 2020

While working with SharePoint’s OOTB list view webpart, certain times we come accross a situation where there are no records in that particular view. Requirement wants not to display the OOTB message “There are no items to show in this view of the list. To add a new item, click “New”.” to end user. In that scenario you can do following to get rid of OOTB message.

  1. Open your webpart page in edit mode.

  2. Add a content editor webpart to the page.

  3. You can either put below javascript in a file and add its reference/ put the code in content editor webpart


Save the page and there you go. OOTB message is hidden in all webparts in page where there are not items to show.

15 views0 comments

Recent Posts

See All

In this blog we will see how to export a list in excel using server side object model. First block we will retrieve all items from the list. This can be done in several ways. You can get all items wit

This blog demonstrates how to connect to a list and retrieve specific items based on filter/query using JSOM. var ListItem; function getTheList(employee) { clientContext = new SP.ClientContext.get_