Hide Alert Me button of a Document Library

Hi All,<o:p></o:p>
I know there are some questions already out there on this topic. However, somehow I am
not able to make it work in my case.<o:p></o:p>
I want to hide Alert Me button on the ribbon for a specific document library. I added JavaScript
to hide the button, however the issue is, when the page is loaded, I couldn't
find the button, because it is still not available. <o:p></o:p>
I tried to handle the click event of the FILES and LIBRARY text. However, I think
SharePoint already has js files like, ribbon.js and core.js which handle the
click event for FILES and LIBRARY and display the buttons accordingly. So my
custom JavaScript function doesn't fire at all.<o:p></o:p>
Any ideas will be appreciated. Thanks in advance. <o:p></o:p>

Hi,
Did you add content editor webpart and place the script
<p><script language="javascript">
function RemoveMenuItems()
var menuItems = document.getElementsByTagName('ie:menuitem');
for(var i = 0; i < menuItems.length; i++ )
var menuItem = menuItems[i];
var menuText = menuItem.getAttribute("text");
switch(menuText)
case "Alert Me":
menuItem.parentNode.removeChild(menuItem);
break;
function AddSendSubMenu(m,ctx)
return ;
_spBodyOnLoadFunctionNames.push("RemoveMenuItems");
</script></p><p></p><p>http://social.technet.microsoft.com/Forums/sharepoint/en-US/a35496a7-fad3-455b-9400-e2a90f0ed7e5/hide-context-menu-of-a-document-library-such-as-alert-me-and-send-to?forum=sharepointcustomizationlegacy</p>
Please remember to click 'Mark as Answer' on the answer if it helps you

Similar Messages

  • Having templates appear when users click the "New Document" button in a document library with custom content types

    Hi all,
    I'm using SharePoint Online, but I'm seeing the same behavior in an on-prem 2013 instance as well. My situation is this:
    - I've created a document library
    - I've created a custom content type and attached a custom document template to it
    - I've assigned the custom content type to the document library, and disabled the default "document" option
    What I'm expecting to see is that when I browse to the document library and click "new document", that either a) a picklist appears allowing me to specify the document template I want (using the custom template I specified) or b) open the custom
    template itself. That doesn't happen - instead, when I click new document I'm prompted to upload a file, which seems to contradict the whole point of using a custom content type/custom document template combo.
    Am I missing something? The custom template isn't in the Forms library, which seems to be a problem if I wanted to use the custom document template instead of the default.
    Ideally I'd like a menu like the one shown here:
    http://social.msdn.microsoft.com/Forums/en-US/59ce3bd8-bf7f-4872-ae76-60d8c81dfc32/display-content-types-on-new-document-button-in-document-libraries?forum=sharepointgeneral, except with me being able to control the list of items that is shown.
    Any ideas? Thanks!

    Hi Brain,
    What you have done is by design behavior.
    If you want to show the Office document templates list (e.g. below image from your above referenced link) to select when click "+new document" link, this will need to install Office Web App 2013 which provides this feature,
    you can new document and see it is using WopiFrame.aspx page, please see more from below article about how to configure OWA 2013 for SharePoint 2013 on-premise.
    http://technet.microsoft.com/en-us/library/ff431687(v=office.15).aspx
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] 
    Daniel Yang
    TechNet Community Support

  • How to remove or hide Name column while upload document in document library

    Hi All,
    In below print screen the first column Name* which always show when I'm going to upload the file which I don't want. It will be really help full if you provide some solution how to hide this column while uploading the document. Its really confusing the users
    when they are going to upload the document in document library.
    I already tested below steps. After clicking Document Content Type every column is clickable except "Name" column. 
    Go to Document Library settings -> Advance settings -> Allow management of content types -> check the box
    Now go back to Document Library settings -> Under content types -> click Document content type -> select the column -> Hide this column
    Every column is clickable except "Name" column so unable to resolve this issue. Please help.

    Hi,
    Thanks for posting your issue, Kindly browse the below URL to fix this issue
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/c7d0e0d5-084b-4d49-88fe-b411a70042bd/how-to-hide-the-name-column-in-the-document-library?forum=sharepointdevelopmentlegacy
    http://spstipsutilitypack.codeplex.com/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Alert on view in document library triggers unwanted alerts

    A user has configured an alert on a document library view.
    She still receives alerts from documents that do not belong to the specific view in this document library.
    This is the only alert she has configured.
    The alert seems the be correctly created.
    Any ideas? Thanks, Johan
    Johan Celis

    Hi,
    Based on your description, my understanding is that the user created an Alert on views in a document library, but she still received alerts from documents that do not belong to the specific view in this document library.
    For your issue, first, make sure that there aren’t any other alerts on the documents.
    Second, we can set up alerts on views in a document library
    with the following things to be considered:
    1. When you create an alert under Send Alerts for these changes section an option 
    "Someone changes an item that appears in the following view" appears with a drop down of all your views (so you can select any view you want to create alert from the DD choices)
    2. This option is only available when you create views by filtering a column.
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact 
    [email protected]

  • Error when trying to retrieve Document Library in Sharepoint Hosted App using REST

    I have created the following REST request in order to retrieve the root folder of a Document Library added to a Sharepoint Hosted App
    getProductDocumentFolder: function () {
    $.ajax({
    url: _spPageContextInfo.webServerRelativeUrl +
    "/_api/web/GetFolderByServerRelativeUrl('/Lists/ProductDocuments')",
    type: "GET",
    headers: {
    "accept": "application/json;odata=verbose",
    success: function () {
    alert("Success!");
    //REST.Operator.readAll();
    error: function (err) {
    alert("Oops, error!");
    alert(JSON.stringify(err));
    The Document Library was added to the App from the Add > New Item menu in Visual Studio. I selected List and Selected Document Library from the Create a customizable list... dialog. The list is defined as shown in the picture below.
    I get the generic error "Value does not fall within the excepted range".
    I have tried both 
    "/_api/web/GetFolderByServerRelativeUrl('/Lists/ProductDocuments')"
    and
    "/_api/web/GetFolderByServerRelativeUrl('/ProductDocuments')"
    for the Document Library URL both I get the same error in both cases.
    What am I missing here?

    Problem solved. 
    It turns out there should be NO leading '/' in the relative URL despite the example shown in http://msdn.microsoft.com/en-us/library/office/dn292553.aspx#Folders with "/Shared Folder".
    The correct GetFolderByServerRelativeUrl-parameter in my case is 'Lists/Productdocuments'.
    Unsure whether example is wrong or if it applies to other cases than mine.

  • Hide Upload Document button in a sharepoint library programmatically

    Hi,
    How to hide Upload Document button in a sharepoint library programmatically?
    Thank you,
    AA.

    Hello,
    hope these references will help you out
    http://www.solwebsolutions.com/blog/entry/css-for-hiding-upload-options-in-sharepoint-library-ribbon
    http://sharepoint.stackexchange.com/questions/32606/remove-button-from-ribbon-in-a-specific-toolbar
    Good luck,

  • Change/ Hide document library "Add Document" Button

    Hello , 
    I have create a document library and document template . I got some requirement like :
    User don't want document upload option after clicking on "New Document" Button , Instead of that When the user will click on "New Document" button it should open Document Template which  I have created already .
    Thank you

    That template exists when you click the new dropdown from the ribbon and then select your template. If you want to change this, the easiest way is to just hide the toolbar (which holds the new button), then add a custom link that goes to the template.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • SharePoint 2013: Hide/Show Column fields while uploading document in Document Library

    Dear all,
    I have created a document Library LIB001 and I have created One Column of type Choice, drop down list, (CCHOICE) and I have created 3 other columns, (Column1, Column2, Column3).
    What I want is while uploading a file in the document library, when I choose a certain value from CCHOICE, i want to show/hide and/or make the column mandatory.
    Can anyone help/guide me how to achieve this?
    Many Thanks
    Vinay

    Dear all, I am trying the following code, but it's not entering the onchange of drop down list event. <script> $(document).ready(function () { var countryField = SPUtility.GetSPField('Document Type'); var countryFieldValue = countryField.GetValue(); alert
    (countryFieldValue); // ----- Hide/Show the field based on new selected value. var id = SPUtility.GetSPField('Document Type').Dropdown.id; alert ('field ID: '+id); $('#' + id).on('change', function () { alert ('Inside on Change:'+countryFieldValue); if (countryFieldValue
    == 'Type1') { SPUtility.GetSPField('Column1').Hide(); } else if (countryFieldValue == 'Type2') { SPUtility.GetSPField('Column2').Hide(); } }); }); </script> Can anyone help me please. Many Thanks & Regards Vinay

  • Copy Attachments of sharepoint list item to a document library using Javascript on click of a button

    The requirement is as follows:
    1. We have a SP list. All items in the list have mulitple attachments.
    2. On click of a button, All the attachments of all items should be copied to a document library
    This is to be done from client side only. No server code is acceptable. We have tried following things:
    1. USing Asynch call
    context = new SP.ClientContext("my site name");
             this.oWebsite = context.get_web();
             var lists = oWebsite.get_lists();
             var list = lists.getByTitle('my list name');         
             context.load(oWebsite);
             var folderPath = 'Lists/<my list name>/Attachments/' + folderId;
             var Folder = oWebsite.getFolderByServerRelativeUrl(folderPath);
             context.load(Folder);
             Files = Folder.get_files();
             context.load(Files);
             context.executeQueryAsync(Function.createDelegate(this, this.ExecuteCopyOnSuccess), Function.createDelegate(this, this.ExecuteCopyOnFailure));
    function ExecuteCopyOnSuccess(sender, args) {        
             for(var p=0;p<this.Files.get_count();p++)
         var file = Files.itemAt(p);    
              var filename = file.get_name();      
              if (filename != null) {
                  var newUrl = 'document library url';
                  file.copyTo(newUrl, true);
                  context.executeQueryAsync(null,null);
    In this case, Files.get_count() throws error - The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
    2. Using copy.asmx service
    It copies files to document library but some files are blank and are having size 0.
    Thanks!

    Hi,
    I think you can use Document Content types or document sets -
    Here are links that you can refer to
    http://office.microsoft.com/en-us/windows-sharepoint-services-help/introduction-to-content-types-HA010121570.aspx
    http://msdn.microsoft.com/en-us/library/office/ms472236(v=office.14).aspx
    http://office.microsoft.com/en-us/sharepoint-server-help/create-and-configure-a-new-document-set-content-type-HA101782461.aspx
    http://office.microsoft.com/en-us/sharepoint-server-help/introduction-to-document-sets-HA101782466.aspx?CTT=5&origin=HA101782461
    Hope this helps!
    MCITP: SharePoint 2010 Administrator
    MCTS - MOSS 2007 Configuring, .NET 2.0
    | SharePoint Architect | Evangelist |
    http://www.sharepointdeveloper.in/
    http://ramakrishnaraja.blogspot.com/

  • How to hide the MS Word Web App in SharePoint Online Document Library

    Hi Guys!
    Badly needed your input on this scenario. I've created a document library in
    SharePoint Online but when I add a document I wanted the MS Word Web App toolbar
    to be hidden as I didn't want to have the document printed  and downloaded. Just want to have the file in read only mode.
    I've come across subscription to IRM of Office 365 as a solution but it's kinda expensive for this need.
    Any idea on how to resolve this scenario would be greatly appreciated.
    Thanks,
    Venus

    Hi!
    Even if I give a view-only permission to the user, still the print button is available and the document can still be downloaded to PDF file.
    Also, the permission rights given to the users of the document library is contributor. But after routing for approval and the content is approved. It should be read-only even to the one who authored the document.
    I've checked also IRM for a solution but unfortunately what we have is E1 package so IRM is out of the option.
    Thanks,
    Venus

  • Sharepoint 2013 on premises Tags & Notes button in List and Document library is disabled.

    Hi,
    In My Sharepoint  2013 on premises  installation Tags & Notes button in List and Document library ribbon is appearing as greyed out.
    I have checked that managed metadata service, User profile services are running. Also have given required permissions to the logged in user.
    As I came to know that Tags & Notes feature has been retired in Sharepoint online. Is this happening because of same reason as I have downloaded the Sharepoint 2013 on premises version recently or do I need to change some settings.
    Please advice.

    Hi Saurav,
    pls check below
    What version of SharePoint 2010 "SP 2010 Foundation or SP 2010 Server" you need to have SP 2010 server and to have the "User Profile service application".
    How do you configure the "User Profile service application" did you add the "Social Tagging Database"
    Create, edit, or delete a User Profile service application (SharePoint Server 2010)" 
    http://technet.microsoft.com/en-us/library/ee721052.aspx
    When you access to "Application Management>Manage service applications>User Profile Service Application>Manage User Permissions" validate if the all authenticated users Group have the "use Social Features" checked.
    Also validate in Central Administration in Farm Features if you have social tags and notes activated.
    http://sharepoint.stackexchange.com/questions/17546/tagging-feature-not-working
    https://social.technet.microsoft.com/Forums/office/en-US/c11cda96-091b-4b96-91bc-ccd8000238f4/tags-and-notes-sharepoint-2010-not-visible?forum=sharepointadminprevious
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Document library, hide all documents by default.

    Hi
    I have a document library and I want to give access to client. I want to hide all documents by default except the few I share with them.
    If I upload new document it should not be visible to them by default until I share with them.
    I have given read access to client but they can see all documents by default and every time I upload a new document I have to manually control the permissions.

    Hi Shafaqat,
    If you want only document creator has view/edit/delete permission on document item created by himself, it has to set the permission on the list time level for each item.
    You can try using workflow to break the item permission inheritance and replace the proper permision on the current item per the following article. 
    http://johnliu.net/blog/2010/7/13/sharepoint-2010-configuring-list-item-permissions-with-workf.html
    And developing the custom code of Event Receiver is a better way to set the proper/complex item permission when item is created or modified. 
    https://msdn.microsoft.com/en-us/library/ee231563.aspx
    For uplaoding document to a library, I tested before, you can check and make sure the user has "View Application pages" permission on library level, then test again.
    https://social.technet.microsoft.com/Forums/office/en-US/40b31ca1-1ade-42f0-a984-c16ab266f423/sharepoint-upload-permission?forum=sharepointadmin
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Daniel Yang
    TechNet Community Support

  • Link Document Library Add Button to home page

    Let me know if it is possible to link the document library add button to homepage or any other page, if possible add a new icon to it, as part of customization.
    I am using sharepoint 2013.
    If possible please let me know the steps, as well as few articles related to the above would be helpful.
    Thanks

    As you are not displaying your new item form into a dialog you can remove the IsDlg=1 from your link and you can append a &Source="PageWhereYouWantToGoBackAfterUpload".
    <a href="/sites/Contracts/_layouts/15/Upload.aspx?List=%7b89225CDC-B61A-45FC-8DC3-AC7DD97578CA%7d&amp;RootFolder=&amp;Source=http://www.yourSite.com"> Upload a doc</a>
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Document library custom ribbon buttons omitted to child items

    Hello,
    Is there a way to omit custom ribbon buttons that are viewable at the document library level but not the content type items of the library?
    I have a custom action targeting a custom document library by registration id "10777"
    And it shows up in the document library, but it also shows up in the document sets.
    is there a way to separate the ribbon customization between a document library and document set?

    Hello,
    Just create a designer workflow for  your requirement.
    Execute that workflow when an new document gets added under library.
    The functionality of the workflow is as follows
    When a new document get added, you workflow will set contribute access to the owner of that document and will set read access to rest all other users.

  • Hide the delete menu item from a specific document library

    I want to hide the Delete  item menu option for a specific document library.Since it is for a specific library I would not like to use customcore.js approach.Please suggest some useful javascript for same.
    I have a custom delete action associated with the menu which performs other function as well so need to hide the OOB delete option from the item  menu of a document library.
    I have already used below javascript in CEWP which I added on the document library page itself(allitems.aspx) but yeild no results:
    <script type="text/javascript">
    var elemTable=document.getElementById('ECBItems');
    if (elemTable !=null) {
         var elemTBody=elemTable.childNodes[0];
    //iterate each table row to find the correct ECB menu item to hide(remove)
       for (var iMenuItem=0; iMenuItem < elemTBody.childNodes.length; iMenuItem++) {
             var elemTR=elemTBody.childNodes[iMenuItem];
             var elemTDTitle=elemTR.childNodes[0];
             var title=GetInnerText(elemTDTitle);
     //here we filter on title, but the table contains more information if need be
            if(title =='Delete') {
                 elemTBody.removeChild(elemTR);
    </script>
    Please suggest which can be kept specific and requires no change in masterpage as same masterpage is used across the site.

    Hi justSP,
    Greetings.
    Hope the below links help you
    http://social.technet.microsoft.com/Forums/office/en-US/9adea3a2-6d08-4c04-ace2-88a704833f1d/how-to-hide-delete-item-from-ecb-menu-for-1-specific-custom-list?forum=sharepointcustomizationlegacy
    http://chakkaradeep.com/index.php/sharepoint-hiding-menu-items-from-the-edit-control-block/
    http://social.technet.microsoft.com/Forums/office/en-US/1b832635-4ae7-4f31-826c-2d6b834ece52/hide-delete-from-ecb-menu-for-a-specific-document-library-in-sharepoint-2010?forum=sharepointcustomizationprevious
    http://social.technet.microsoft.com/Forums/office/en-US/919e01e6-9a7a-4439-b778-28e0dc8bffba/how-to-hide-delete-option-from-ecb-menu-in-document-library-in-sharepoint-2010?forum=sharepointdevelopmentprevious
    Please remember to click 'Mark as Answer' on the answer if it helps you

Maybe you are looking for

  • Flex Calendar

    Hi I have created a flex app for use by the employees of our company. There are 60 employees and we are all shift workers with various rotations of work days. In the application, an employees logs in and a datagrid appears. Inside the datagrid is a c

  • New IPOD user with a question

    Hi, I'm a new IPod/ITunes user, and I have a question that I can't find an answer to on any of the Help categories, so I thought I'd try here. Hope you all can help me out. I love most pop, rock, and country music genres and sub-genres, but I'm also

  • Dynamic properties working in "normal KM" but not in XML forms

    Hi all, (EP 6.0 SP13) I've implemented a Metadata Extension that returns a list of properties. The list is dynamically generated based on the folder the document is located in. I've tested the Metada Extension on both existing documents and new docum

  • SWX_GET_MANAGER vs. RH_GET_ACTORS

    Hi All, Since someone deleted my inquiry yesterday, I am posting a new one now. Basically my requirement is that I need to determine the manager of the wf_initiator so that they can be used as a recipient in the send mail step. The very kind Richard

  • Lenovo IdeaPad v560 Network Printer problem

    Good morning,  I am connecting wirelessly to a Canon imagerunner and the computer will install properly to the printer, but the printer constantly says offline and any other printer that I try to connect to.  The other computers on the network, print