Saturday, 5 July 2014

Replace Add New Item Link Text to Something Different Link Text

Introduction 

This article explores the user’s requirement to change the "Add New Item" link text to " Different Link text", so that it becomes more meaningful on the list.



Solution

In the Content Editor Web Part, Place the JavaScript that manipulates the Add New Item text. In Detail:

1. Go to the target page >> Site actions>> Edit Page

2. Insert a CEWP just below the list view web part.

3. Place the cursor in CEWP, Click on "Edit HTML Source" link from the HTML Ribbon Item's drop down menu.


4. In the Content Editor web part enter the script:

<script type="text/javascript"> 
document.getElementById("idHomePageNewItem").innerHTML="Add New InterviewTracker"
</script



5. Save the page! watch the result in action.

No comments:

Post a Comment

SharePoint 2013 - Uploading Multiple Attachments To The New Item On List Using JSOM And REST API

  Introduction In this article, we will explore how we can attach multiple attachments to the new item on list using JSOM and REST API. Ther...