Link to home
Start Free TrialLog in
Avatar of sammySeltzer
sammySeltzerFlag for United States of America

asked on

How do I change the name from NEW to New Travel Request

Greetings again mates:

I have the a custom list I created in SharePoint. Please see screenshot.

User generated image
Per the screenshot, if user wishes to add another travel request, s/he will have to click on NEW.

Some of these users are complaining that they are having difficulty understanding that they need to click NEW in other to add anothe travel request.

Is there a clever way to change that name NEW to New Travel Request without losing the Export to Excel feature?

I tried the following script which which changes the name from NEW to New Travel request but in doing so, the Exxport to Excel feature is no longer available.

<script type="text/javascript">  
   Sys.Application.add_load(OnListViewLoad);
  function OnListViewLoad() 
  {
      var wpTable = $get("Hero-WPQ2");
      if(wpTable != null)
      {
        var children = wpTable.getElementsByTagName("a");
        for(var i = 0; i<children.length;i++)
        {
             if (children[i].getAttribute("id") == "idHomePageNewItem") 
            {
                children[i].children[1].innerHTML = "New Travel Request";
                break;
           }
       }
  }
}
</script>

Open in new window


Then I attempted to programmaticall add the export link below:
<a href="/sites/TEST_may/Lists/Volunteer/AllItems.aspx/myExportFile.iqy">Export Data</a>

Open in new window


but it does nothing.

Any ideas how to make this work or any other clever way of accomplishing this?

Thanks in advance
Avatar of Walter Curtis
Walter Curtis
Flag of United States of America image

There should probably be a good way using jQuery to do this. I don't have any off the shelf script to do this though.

Note: When ever I change stuff with jQuery i increase the page load time, so I always wonder if it is worth it or if just some user training might do the job better.

Good luck...
Avatar of sammySeltzer

ASKER

This is something that will be used internally by just a few people - less than 100.

The reason this appears to be more complicated than it is is that users need to export the data to Excel spreadsheet and at the same time, have the +NEW link changed to New Travel Request.

Those two combinations won't with SharePoint Online.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.