Saturday, November 22, 2014

SharePoint 2013 Online There are no items to show in this view of the listname list




In this post we will discuss how to change the message There are no items to show in this view of the list name list which comes when there were no items in the list in SharePoint 2013 Online.

Put the below script into a content editor web part.

function ChangeNoListItemDefaultMessage()
{
var a = document.getElementsByTagName("TD")
for (var i=0;i-1)
{
a[i].innerHTML = "Your Customized Message One Goes Here";
}
if(a[i].innerText.indexOf("MySecondListName")>-1)
{
a[i].innerHTML = "Your Customized Message Two Goes Here";
}
}
}
}

_spBodyOnLoadFunctionNames.push("ChangeNoListItemDefaultMessage")  


0 comments:

Post a Comment

Twitter Delicious Facebook Digg Favorites More