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

I have a sharepoint 2010 list, I want to hide the option "add new item" which resides below the list, any suggestions?

share|improve this question
1  
Why do you want to hide it? Is it for security or are the items added elsewhere? –  Dave Wise Jan 31 '12 at 16:19
    
Hi Dave, we dont want users to add items from the link below...but they can add items to the list thru a custom webpart but not thru the link below –  spStacker Jan 31 '12 at 18:52
    
Have you already managed the ribbon buttons? Do you need an answer about how to apply a HideCustomAction feature? –  Alexey Krasheninnikov Jan 31 '12 at 19:40

4 Answers 4

up vote 29 down vote accepted

There's an out-of-the-box way to remove the Add new item link. If you edit the webpart properties using the Modify Shared Web Part command, you'll find the Toolbar Type dropdown in the List Views section. If you choose No Toolbar there and save the page, the footer link will be gone.

No code required, no unghosting/customization, and no effect on other web parts that would be added on the same page.

But you'll have to do this in every view, while the CSS way proposed by Hameds could be applied globally.

share|improve this answer
    
Perfect thank you. –  David Clarke May 28 '13 at 1:43

If you just want to hide it, you can use following css (you must override sharepoint core css with your custom css file)

td.ms-addnew{
display:none;
}
share|improve this answer

If you don't want to make the change globally, you could use a Content Editor Web Part (CEWP) on the desired page. Edit the HTML source of the CEWP and insert Hameds' code inside a style tag:

<style>
    td.ms-addnew { display:none; }
</style>
share|improve this answer
    
how to add multiple add new item with? for ex : if i have two content type it has to show multiple "add new item" –  My Name is Suresh Mar 1 '13 at 7:39

Please be aware that there is a bug in SP2010 where if the toolbar type is set to "none" - if you have custom action ribbon buttons which target your library by list template ID or by content type ID, these buttons will not appear at the root folder of the library, but they will inside folders or document sets.

I have encountered this when deploying list definitions with toolbar type set to none; I have not tested this if you deploy a list and subsequently change the toolbar type to none.

share|improve this answer

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.