Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How to I change the wordings for To create a new item, click "Add new document" below. There are no items to show in this view of the "Form_ABC" document library. or There are no items to show in this view of the "Documents" document library. To create a new item, click "New" or "Upload" above

enter image description here

share|improve this question
add comment

2 Answers 2

up vote 0 down vote accepted

Actually, I manage to find the answer and hopefully, anyone who need it can use the following solution:

<script type="text/javascript">
function ChangeNewMessage()
{
var a = document.getElementsByTagName('TD')
for (var i=0;i<a.length;i++)
{
    if (a[i].className=='ms-vb')
    {
        if (a[i].innerText.indexOf('To create a new item')>-1)
        {
            a[i].innerHTML = 'Coming Soon..';
            break;
        }
    }
}
}
_spBodyOnLoadFunctionNames.push('ChangeNewMessage')
</script>

Just paste anywhere on the aspx file that contain that new Document / List will do.

share|improve this answer
add comment

Rather than modifying aspx page, i would recommend Modifying SPView.ViewEmpty property. This property contains the text you mentioned, and you can set it to whatever you like.

Note that you must change it for every view in list.

To modify it without coding or powershell, you can use SharePoint Manager where you can copy out, modify in a text editor and paste back in the new value.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.