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]

Similar Messages

  • 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.

  • The Create List Item workflow action does not work in document library with document template

    My end goal is more complex but below is a basic example of the issue I’m having that just simply does not work.
    I'm trying to use a site workflow to create an item in a document library that has a document template applied to it but the file that gets created by the workflow is corrupt and cannot be opened.
    I created a document library and edited the document template by adding some text to the header and changing it to a Word docx file instead of a Word dotx file. I tested the document template by clicking the files tab in the ribbon and then clicking new
    document which opens the document template in Word and allows me to edit and save the document back to SharePoint. Then I created a SharePoint 2013 site workflow in SharePoint Designer that contains a single Create List Item action, and that action creates
    an item in the document library with the name field statically defined. I published the workflow and then manually start it on the site. The workflow completes successfully and when I navigate to the document library the document has been created by the workflow.
    When I click on the document to open it in the Word Web App it throws the error pictured below and if I open it in the Word client application it just opens a blank document and not the correct document template.
    I also tried using a SharePoint 2010 workflow with pretty much the same results. Opening the document in Word Web App gives the same error as above and opening the document in the Word client application gives the error pictured below.
    Come on Microsoft creating a Word Document in a SharePoint Document Library from a SharePoint Workflow should just work! Is this a bug or does anyone have any ideas on what is causing the this issue?

    I had the same problem with corrupted document - this worked for me:
    1. Create a 2010 Workflow which creates the list element in a document library
    (you may start this workflow from your 2013 workflow if applicable)
    2. In the Create New List Item properties - make sure to set ContentTypeId to your content type
    ("Id for indholdstype" is Danish for "Contenttype ID")
    3. Your Content Type template should be a ".docx" file - NOT a ".dotx" file...!
    (I have always created my templates for content types as .dotx files - seems Microsoft wants us to use ordinary .docx files as template files for content types)
    Hope this helps you!

  • Corrupt document gets created in document library with document template using createlistitem workflowaction in visual studio workflow for office 365 solution

    Hi,
    My requirement is to create a document library associated to a custom content type with a document template associated. Also I need to create a document based on the template in this document library when a new item is created in another list by taking the
    reference ID of that new Item , I need to create the document with the name appended by ID. I need to do all this deployment using WSP.
    I have created document library with document template associated to content type by following instructions in below stated blog :http://blogs.msdn.com/b/chaks/archive/2011/05/19/deploying-a-document-template-file-in-content-type-in-a-office365-sandboxed-solution.aspx
    This works perfect for me.
    However, there are few observations, when going to Document Library > Library Settings > Advanced Settings > Document Template section - doesnt shows the Edit template link. When tried to look at the value for the document template using view source
    , it is giving me /Lists/MyDocsListInstance/Forms/template.dotx instead of the actual template file uploaded.
    Ignoring the above observation, when I am trying to create a sandbox based workflow in visual studio to create document in document library when new item is created in another list, I provide the ContentTypeID as the ID associated with the document library
    with template. 
    It creates the corrupt document at end of workflow. 
    I have tried using .docx instead of .dotx files for workflow as per solution provided in some of the post but it isnt resolving my issue.
    Any help is much appreciated.
    Regards,
    Krutika

    OK, I am going to throw out a lot of ideas here so hopefully they get you closer to a diagnosis. Hang on :)
    Does it happen to work for some users but not others? If so, try logging in on the "good" computer with the "bad" username. This will tell you if the problem is related to the end-user's system. Also, once the user downloads a document
    successfully can they open and work on it in Word? Also, does the document library have any custom content types associated with it or does it just use 'Document'?
    I notice that there are other folks on the web that have run into this same problem and the similarity seems to be that they are either on SharePoint 2007 or have upgraded from 2007. Did this doc library start out as a 2007 library?
    What you might want to do is this: Make a site collection from scratch in 2013 (or find one that you know was created in 2013). Choose team site (or whatever you want) for the root web and set up the security the same way you have it on the malfunctioning
    library. Now, use windows explorer to copy and paste some of the documents to the new location. Be sure you recreate any needed content types. Now test it from the troubled user's computer.
    I'm thinking there may be something that is different about the library since it was migrated through various versions and updates since 2007. I've sometimes found that there can be problems (especially with user profiles but that's a different story) with
    things that go through this evolution.

  • External data column as shared column in document library with document sets

    Hello,
    I'm using a document library with document sets. Within this document library i have a External data column called "Project"
    This column has it's columns:
    Project: Installatietype
    Project: Relatie
    Project: Object
    Project: Projectleider
    Project: Status_project
    I wan't to use the external data column as an shared column for my document set(s). But i can't figure out or this is possible.

    Hi,
    According to your description, my understanding is that you want to set the external data column as a shared column in document set content type.
    I tested the same scenario in my environment, and the external data column was not supported to be set as a shared column in document set.
    Here is a similar thread for you to take a look:
    http://social.technet.microsoft.com/Forums/en-US/5488b777-1c18-4895-a264-27802b2cde27/document-set-shared-columns-and-bcs-data?forum=sharepointgeneralprevious
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • SharePoint 2010 document library - Add a link that points to a page

    Hi
    A department has created a document library. Now, they would like to have a link visible in that library that points to another .aspx page. Is that possible?
    I've seen how to add a "link to a document", but I want to add a link to a page, not a document.
    Thanks in advance,
    Sonya

    Thanks. I think adding a web part should satisfy their request.
    I tried the "Link to a document" content type suggestion, but I'm not sure if there's something missing from our SharePoint installation, or if something is different with our template.docx file, or if SharePoint 2010 is playing strangely with
    Office 2013, but after I added the "Link to a document" content type and chose it from the New Document drop-down, it wants to auto-launch Word 2013 with no dialogue for adding a URL.
    However, once in Word, there are a couple of boxes just above the content area to type a URL and a description (screenshot below). I pasted the URL to the page in the URL box, left the description and content area blank, then saved the file back
    to the library. However, when you click on the document in the library, it simply wants to open Word without going to the link.

  • After applying FQDN with SSL sharepoint2010 document library's document open as Read Only

    Hi,
    we have sharepoint server 2010 installed in windows server 2008 R2. We build a document library. After that we installed Office Web Apps. Now,edit in Browser or edit in word/excel etc. all options are working fine.
    After that, we configured the site with FQDN (Fully Qualified Doman Name) with SSL. Now, the
    edit in browser mode is working fine form both server and client machine (for both windows and form based users).
    But, When we are trying toedit in word or other office application mode, the files open as Read Only mode (both from server and client machine).
    The users cannot save the file.
    After trouble shooting a lot, we found many forum says to edit windows registry or do some other operation on client machine. But, in our case it is not possible to edit registry or do some other experiment on every client's machine.
    Is their any option to solve the problem from server end, so that each client automatically can open the office files on their own PC and save them to server (instead of re uploading the files to server )?
    Please, help us to give the suggestion for solving our problem.
    Thanks,

    Is Alternate Access Mappings configured correctly? Is the behavior consistent across different browsers? What are you seeing in ULS logs when the document is being opened from the library?
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • Difference between the Document Library in Document Center and Team Site

    Hi,
    I would like to know the difference between a Document Library in a normal team site and document center site.
    Also what is the maximum number of item that I can upload in each document library. ( For both sites (Team Site & Document Center Site )
    Thanks

    The library which is created by default in a Document Center has "Document Set" and "Link to a Document" content types added to it apart from the "Document" content type. Whereas the OOB document library in Team site has only
    "Document" content type attached to it. The library in team site can be easily extended to have "Document Set" and "Link to a Document" content types attached to it. 
    Moreover, metadata navigation is automatically added in a library in Document Center. However, it can also be applied to a library in team site. A site level feature named "Metadata Navigation and Filtering" needs to be activated and then in the
    library settings a link "Metadata navigation settings" will appear under "General settings.
    In nutshell, "Document Set" and "Link to a Document" content types and "Metadata navigation settings" are automatically added to OOB library in Document Center.
    As far as the number of documents is concerned, you can upload millions of documents in the library (30,000,000 per library). And this limit will apply to any library whether in team site or document site. The main thing to take care of is that number of
    documents returned by a particular view should not exceed the List View Threshold.
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • Change iten property when Add Row button pressed

    hi,
    I have advance table on one update page. There are two requirements on that page:
    1. One key Item has to be READ_ONLY for saved rows. It can be changed when new row added using Add New Row button. I followed Changing UI properties (SPEL) example. The read_only property changed for all rows, not just for the added new row.
    2. New added row can be removed and saved row can not deleted.
    Please help me.

    Mahendra,
    It works for READ_ONLY field. I used same concept to control the delete image using swither. Enable image did show up since the value is null for new added row. Following is my query.
    SELECT SumryRuleLinesEO.RULE_ID,
    SumryRuleLinesEO.LINE_ID,
    SumryRuleLinesEO.LINE_CODE,
    SumryRuleLinesEO.LINE_NAME,
    SumryRuleLinesEO.ENABLED,
    DECODE(LINE_CODE, NULL, 0, 1) LINECODE_SW,
    DECODE(LINE_CODE, NULL, 'REnabled', 'RDisabled') LINE_REMOVE_SW
    FROM BOLINF.GEOR_STG_SUMRY_RULE_LINES SumryRuleLinesEO
    LINECODE_SW is used for READ_ONLY using SPEL. It works.
    LINE_REMOVE_SW is used for delete image. It did not work since the LINE_REMOVE_SW is null for newly added row.
    Any idea?
    Thank you for your help.
    DeeDee

  • How to add custom file icons on SharePoint 2010 document library?

    Hi there,
    In a document library SharePoint shows the PDF and Word etc icons all fine - however we have a custom file format with a custom icon. Is this possible to add this custom icon for our custom extension? How?
    Thank you so much.

    Hi,
    You could accomplish your requirement by using jQuery with these steps, and this code is using jQuery to modify it on the current page, if you would like to make it work on all library, you need to choose the former method or add this JQuery script on all
    library pages manually:
    Upload a custom icon to file “14\ Template\Images” or your SharePoint document library.
    Add this code below in the document library that you want to extend your custom icon, you could add code by following these: Click edit page in the document library -> add a web part -> choose Content Editor -> click edit source in the Ribbon ->
    add the source below -> click OK.
    <script src="https://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script><script type="text/javascript">
    $(document).ready(function(){
    var fileObject = $("[title$='docx']");
    for(var i=0; i < fileObject.length; i++){
    //fileObject[i].outerHTML="<img width=\"16\" height=\"16\" title=\"test.docx\" alt=\"test.docx\" src=\"/_layouts/15/images/custom.png\" border=\"0\">"; // upload your custom icon to file ” 14\ Template\Images”, replace your src URL
    fileObject[i].outerHTML="<img width=\"16\" height=\"16\" title=\"test.docx\" alt=\"test.docx\" src=\"/sites/sharepoint2013/Shared%20Documents/custom.png\" border=\"0\">"; // upload your custom icon to SharePoint document library, replace your src URL
    </script>
    The screenshot below is my result:
    Best Regards
    Vincent Han
    TechNet Community Support

  • Word cannot open file when uploaded document to document library progrmmatically.

    I have created one button in which I am uploading a new document to document library through my code. The document library contains document template.
    My code is as below:
    private SPListItem CreateDocument(SPList Docs, string title)
    SPListItem newItem = null;
    try
    SPFolder cmsDocsFolder = Docs.RootFolder;
    SPFileCollection fileCollection = cmsDocsFolder.Files;
    if (!string.IsNullOrEmpty(Docs.ContentTypes[0].DocumentTemplateUrl))
    string docTemplateUrl = Docs.ContentTypes[0].DocumentTemplateUrl;
    SPFile docTemplateFile = Docs.ParentWeb.GetFile(docTemplateUrl);
    byte[] binaryFile = docTemplateFile.OpenBinary();
    string newFileUrl = cmsDocsFolder.Url + "/" + RemoveSpecialCharacters(title).Trim() + _docxExt;
    if (!Docs.ParentWeb.GetFile(newFileUrl).Exists)
    SPContentType contentType= Docs.ContentTypes.Cast<SPContentType>().FirstOrDefault(c => c.Id.IsChildOf(ContentTypeIDs.CMSDocument));
    if (contentType != null)
    SPFile addedFile = fileCollection.Add(newFileUrl, binaryFile, false);
    newItem = addedFile.Item;
    newItem[FieldNames.ContentTypeId] = ContentTypeIDs.CMSDocument;
    newItem[FieldNames.ContentType] = contentType.Name;
    catch (Exception ex)
    return newItem;
    My code does not throw any error but when I go to document library and click on uploaded document the file tries to open in word application but I am getting an error:
    "Word cannot open the file because the file format does not match the file extension. (url)"
    The browser I am using is FF.
    What am I missing? Please help.

    Hi,
    Please try to upload your document using SharePoint UI.
    If the issue still exists in Firefox, I suggest you check your Firefox settings.
    If not, please debug your code and watch the value or here is a blog for your reference:
    http://thearkfloats.blogspot.com/2013/10/programmatically-upload-to-sharepoint.html
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Open PDF's in new window in document library when using "Find a file" search

    I need to be able to open PDF's in a new window from a document library when using the "Find a file" search built into the document library "All documents" view. I currently have the following javascript on the page:
    _spBodyOnLoadFunctionNames.push("setTargetBlank()");
    function setTargetBlank()
    { $("a[href$='.pdf']").removeAttr('onclick').attr("target", "_blank");
    This works great when going to the document library and navigating through the folders then clicking on a link.
    The problem is when someone goes to the document library then uses the "Find a file" search and then they click on a link. The "Find a file" search does not do a postback (reload) of the page, therefore my javascript to find the PDF links
    and make them open in a new window does not run for the links on the page.
    I have read the following article but this does not seem to offer a solution that will work in this situation for SharePoint 2013 (Office 365): http://social.technet.microsoft.com/Forums/sharepoint/en-US/7ad3224c-3165-47ae-95bc-4f3928e2f9a8/opening-document-library-pdf-in-a-new-window-sharepoint-2013?forum=sharepointgeneral
    I suppose the idea solution would be to somehow tap into the event that is fired when using "Find a file" search to run my javascript and update the links for the search results.
    Can anyone offer any solutions to this issue?

    Hi,
    According to your description, my understanding is that you want to open PDF files in a new window from a document library when using the "Find a file" search.
    As you said, the "Find a file" search does not do a postback (reload) of the page, therefore JavaScript to find the PDF links and make them open in a new window does not run for the links on the page.
    I recommend to use JS link to achieve the goal. Create a JavaScript override file and upload the JavaScript file to the Master Page Gallery, and then set the JS Link property of the document library web part to point to the JavaScript file.
    Here are some links about the JS link in SharePoint 2013 for you to take a look:
    http://www.idubbs.com/blog/2012/js-link-for-sharepoint-2013-web-partsa-quick-functional-primer/
    http://www.learningsharepoint.com/2013/04/13/sharepoint-2013-js-link-tutorial/
    http://zimmergren.net/technical/sp-2013-using-the-spfield-jslink-property-to-change-the-way-your-field-is-rendered-in-sharepoint-2013
    Thanks,
    Victoria
    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]
    Victoria Xia
    TechNet Community Support

  • How to move files to Archive folder in same document library

    hi,
    we have one document library (Upload Documents) in that document library we have Archive Folder , when upload document to upload document library first we want check same document   name is there or not and check version also ,if the same document
    is there in that document library then move to that  document to Archive  folder  with  same version and add to document to  upload document library..
    ex:
    Document Lib name:---Upload document
    folder name-->Archive Folder
    Document: Test.txt and version is 1.0
    when upload  same document to document library the Test.txt file move to archive folder and add same document in upload document library with new version

    you can look at Item Adding Event receiver and before you add the new document do you check and move the document to archive folder 
    Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010

  • Bulk Add Document Set

    Hello,
    Is there a way to bulk create document set in SharePoint? I saw mutliple way to bulk add "simple" items but I can't find a way to do this with document set (or better with my custom document set type)
    My target is to read an xml file containing IDs and create in a document library a document set for each entry..
    for now i'm using a web service that I call with PowerShell but it is too slow for me (I need to import a lot of document sets) ... is there a faster way?
    Thanks in advance
    Christopher
    Best regards, Christopher.
    Blog |
    Mail
    Please remember to click "Mark As Answer" if a post solves your problem or
    "Vote As Helpful" if it was useful.
    Why mark as answer?

    I'm thinking, a faster way would be to leverage the client OM to upload files in batches. Each batch gets a little bit bigger because files get Base64 encoded, but according to my tests it's well worth the effort. In my case, I was able to make the
    code run 10 x faster. Here's some example code to get you started:
    // Run some kind of loop to add batch of files
    FileCreationInformation fileCreationInformation = new FileCreationInformation();
    byte[] content = fileContent;
    fileCreationInformation.Content = content;
    fileCreationInformation.Overwrite = true;
    fileCreationInformation.Url = fileName;
    this.CurrentList.RootFolder.Files.Add(fileCreationInformation);
    // End of loop, now execute in 1 batch:
    Context.ExecuteQuery();
    This code is for individual files, not for document sets, but I guess you'll be able to figure that out. I once built a tool that leverages the concept of batch uploading files, you can check that out as well at
    http://gallery.technet.microsoft.com/office/The-Migration-Dragon-for-c0880e59/view/Discussions
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

Maybe you are looking for

  • Can no longer enable disk use on my 5th gen ipod since updating to 9.0.13.5

    Hey everyone, I have an 5th gen 80 gig iPod that I use as a portable hard drive, having gotten a new Ipod. However, since I updated to iTunes version 9.0.3.15 this morning, the "Enable Hard Disk" option doesn't even show up at all. Is there a way to

  • Re: (forte-users) Fusion for the VAR

    Hi, It is a good idea. In fact, I think that how Forte is going to integrate her own suite of app. too. ( I kind of recall that there is a speech on this topic in Forum ). However, as Forte will most likely goes toward Java, I would suggest that you

  • I'm having trouble connecting wire to computer

    I have a Dell computer. I see where the cord (that goes from the computer to the iPod) looks like it should go in the front, but it does not fit. Where do I plug it in to the computer? Is that the right spot in the front and I need some kind of adapt

  • How do I save changes to the document

    How do I save the text changes

  • Data retrieval from CC04

    Hi. Is there a way to receive the list of documents for given material ( as in CC04) using a report or a function module? (I tried to debug but it looks too complicated) Thanks Ariel