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")
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")