SharePoint 2010 Change text of add new item

Creating a list is normally not that difficult. But if you use the list in order to manage travel requests, vacation requests or any requests, you might don’t like the text of the link “add new item” below the listview which comes with the standard.

If the user wants to make a new request of whatever, he expect that there is a link to add a new request of whatever and not add new item. You maybe like to have something like

  • request travel
  • request vacation
  • add new request XX
  • and new project request

Whatever you want to have there, it is possible just by using the SharePoint Designer. You just have to open the view of the list in SPD and . You should look for this lines of code:



<a id="{$ID}"
href="{$Url}"
onclick="javascript:NewItem2(event, &amp;quot;{$Url}&amp;quot;);javascript:return false;"
target="_self">
<xsl:value -of select="$AddNewText" />
</a>


and replace the <xsl:valu-of-select=”$AddNewText” /> with your desired text:



<a id="{$ID}"
href="{$Url}"
onclick="javascript:NewItem2(event, &amp;quot;{$Url}&amp;quot;);javascript:return false;"
target="_self">
Add new Task
</a>


You’re done. The output should look like this:

I recommend you to read also this post. There is another possibility by using javascript.

..:: I LIKE SHAREPOINT ::..

The article or information provided here represents completely my own personal view & thought. It is recommended to test the content or scripts of the site in the lab, before making use in the production environment & use it completely at your own risk. The articles, scripts, suggestions or tricks published on the site are provided AS-IS with no warranties or guarantees and confers no rights.

Karsten Pohnke About Karsten Pohnke
He is Consultant for SharePoint Solutions for collaboration, communication and business processes. He provides his customers applications based on standard features as well as development or combining the power of several microsoft tools like Dynamics CRM. In his free time he tries to collect tipps and worthy experience in this blog.