How to disable Add New Item in SharePoint 2013

Hi,
I want to disable the Add New Item button after the user created one item in SharePoint 2013.
Is it possible to disable?
Please reply
Thank you

I'd do it creating a custom web part that would mimic the list web part, and have logic in there that makes sure to hide the button once an entry by the current user has been made in the list. You could also create a workflow that would remove the user's
permission to add a new item on the list upon creating an item.
Nikolas Charlebois-Laprade Microsoft Certified Professional & Software Engineer http://nikcharlebois.com

Similar Messages

  • How can I add new user in sharepoint list column (people or group) or in sharepoint group using loginName only

    Hi
    If I have only login name of any user like - "Donamin\login_name".
    If this user is not present in sharepoint portal.
    How can I add this user to people or group column of any list or in any  sharepoint group with permission?

    hi
    got the issue
    it should be  like this -
    string userloginname = @"DOMAIN001\vyankatesh_mujumdar"
    using (SPSite oSpSite = new SPSite(site.ID))
    using (SPWeb web = site.OpenWeb())
    try
    { SPList lst = web.Lists["TestList"];
    string userloginname = @"DOMAIN001\vyankatesh_mujumdar";
    web.EnsureUser(userloginname);
    SPUser oSPUser = web.SiteUsers[userloginname];
    SPFieldUserValue FieldValueName = new SPFieldUserValue(web, oSPUser.ID, oSPUser.LoginName);
    SPListItem oSPListItem = lst.Items.Add();
    oSPListItem["Title"] = userloginname;
    oSPListItem["People"] = FieldValueName;
    oSPListItem.Update();
    catch (Exception ex)
    ExceptionManager.LogErrorInFile("--------Exception -------", bIsLogEnabled);
    ExceptionManager.LogErrorInFile(ex.Message, bIsLogEnabled);
    ExceptionManager.LogErrorInFile(ex.Source, bIsLogEnabled);
    ExceptionManager.LogErrorInFile(ex.StackTrace, bIsLogEnabled);
    ExceptionManager.LogErrorInFile("-------------------------------------------------------", bIsLogEnabled);
    Thanks for all for the reply

  • How to change the url of "Add New Item" of a particular list in SharePoint 2013???

    Hi Guys,
    How to change the url of "Add New Item" of a particular list in SharePoint 2013???
    I need to redirect it into the page where I have created my Visual web part.
    Please suggest
    Warm Regards,
    Tony Joy

    Hi,
         There are multiple ways to change the form url like javascript, SharePoint designer, custom code, editing default form to have custom web part etc, Please follow the url below that describe diffent methods and steps
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ec2769a0-683c-4023-8804-b596e4f92a3a/change-default-forms-on-custom-list?forum=sharepointcustomizationlegacy
    Hope it helps!!!
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. Thanks, Ajeet

  • Edit Add New Item link in certain view of list in SharePoint Programmtically

    this is my requirements
    i have one list called List 1 and two content types on it
    CT 1 and
    CT 2 and create two views on the list
    View 1 to display items of CT 1 
    View 2 to display items of CT 2 
    the creation of list and views is done via XML 
    now i need to change the URL of add new item link in every view to open its content type, i.e. when i was on view 1 i click on add new item, it will open new item form of CT 1 and hen i was on view 2 and click on add new item, it will open new item form
    of CT 2 
    i do a lot of search on the internet but get the following code but it doesn't work for me, i already wrote it in event receiver
    SPSecurity.RunWithElevatedPrivileges(delegate()
    SPWeb web = properties.Feature.Parent as SPWeb;
    web.AllowUnsafeUpdates = true;
    SPList contractList = web.Lists.TryGetList("Contract");
    SPLimitedWebPartManager webpartManager = web.GetLimitedWebPartManager("Lists/ContractList/SICET%202A%20Contract.aspx", PersonalizationScope.Shared);
    foreach (System.Web.UI.WebControls.WebParts.WebPart item in webpartManager.WebParts)
    if (item.GetType().Name == "XsltListViewWebPart")
    XsltListViewWebPart listViewWebPart = (XsltListViewWebPart)item;
    Guid guid = new Guid(listViewWebPart.ViewGuid); // get the view details which is applied to web part
    SPView sicet2AView = contractList.Views[guid];
    sicet2AView.GetType().InvokeMember("EnsureFullBlownXmlDocument",
    System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.InvokeMethod,
    null,sicet2AView,null);
    PropertyInfo nodeProp = sicet2AView.GetType().GetProperty("Node", BindingFlags.NonPublic | BindingFlags.Instance);
    XmlNode node = nodeProp.GetValue(sicet2AView, null) as XmlNode;
    XmlNode toolbarNode = node.SelectSingleNode("Toolbar");
    //sicet2AView.ViewFields.DeleteAll();
    if (toolbarNode != null)
    string toolbarType = toolbarNode.Attributes["Type"].Value;
    string linkText = "abdeen";
    toolbarNode.Attributes["Type"].Value = "Freeform";
    XmlAttribute positionNode = toolbarNode.OwnerDocument.CreateAttribute("Position");
    positionNode.Value = "After";
    toolbarNode.Attributes.Append(positionNode);
    //toolbarNode.InnerXml = @"<IfHasRights><RightsChoices><RightsGroup PermAddListItems=""required"" /></RightsChoices><Then><HTML><![CDATA[ <table width=100% cellpadding=0 cellspacing=0 border=0 > <tr> <td colspan=""2"" class=""ms-partline""><IMG src=""/_layouts/images/blank.gif"" width=1 height=1 alt=""""></td> </tr> <tr> <td class=""ms-addnew"" style=""padding-bottom: 3px""> <img src=""/_layouts/images/rect.gif"" alt="""">&nbsp;<a class=""ms-addnew"" ID=""idAddNewItem"" href=""www.facebook.com""]]></HTML><URL Cmd=""New"" /><HTML><![CDATA["" ONCLICK=""javascript:NewItem(']]></HTML><URL Cmd=""New"" /><HTML><![CDATA[', true);javascript:return false;"" target=""_self"">]]></HTML><HTML>" + linkText + @"</HTML><HTML><![CDATA[</a> </td> </tr> <tr><td><IMG src=""/_layouts/images/blank.gif"" width=1 height=5 alt=""""></td></tr> </table>]]></HTML></Then></IfHasRights>";
    toolbarNode.InnerXml = @"<IfHasRights><RightsChoices><RightsGroup PermAddListItems=""required"" /></RightsChoices><Then><HTML><a class=""ms-addnew"" ID=""idAddNewItem"" href=""www.facebook.com"">Test</a></HTML></Then></IfHasRights>";
    sicet2AView.Update();
    //listViewWebPart.ViewGuid = sicet2AView.ID.ToString("B").ToUpper();
    //listViewWebPart.Visible = true;
    webpartManager.SaveChanges(listViewWebPart);
    web.Update();
    but it doesn't work, my first trail is changing the text of the link then go to change the link any help plz
    Mohamed Abdeen

    Hi,
    The “Add new item” button will redirect users to add new item with the default Content Type of the current list.
    So a workaround can be like this: We can change the default Content Type of this list every time when users open this list view page, then the “Add new item” button will work
    as you expected.
    Here is a link with code demo about how to programmatically set a content type as default content type in a SharePoint 2013 List:
    http://www.ashokraja.me/tips/How-to-programmatically-set-a-content-type-as-default-content-type-in-a-SharePoint-2013-List
    We can put the code into a Visual Web Part and add it into your two views, then when users open a list view page, the code will be executed to change the default Content Type
    of the current list.
    To develop a custom web part, you can take a look at the links below with steps in detail for a start:
    Creating Web Parts for SharePoint
    http://msdn.microsoft.com/en-us/library/ee231579.aspx
    SharePoint 2013 Create a Visual Web Part
    http://raquelalineblog.wordpress.com/2013/04/25/sharepoint-2013-create-a-visual-web-part/
    Thanks
    Patrick Liang
    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]
    Patrick Liang
    TechNet Community Support

  • How to add new item in more options dialog box

    Hi all,
    Can anyone tell me how to add new item in more options dialog box(site actions -> more options). I want to add new item there to the new page layout which I created but I didn't find any way to do it. can anyone assist me for this.

    Good point, in order to add a Page into that area, you will need to define a Custom Action. You can learn more about creating Custom Actions here:
    http://msdn.microsoft.com/en-us/library/hh500259(v=office.14).aspx
    As an example, Microsoft uses the following Custom Action to add the "Publishing Page" to that Create Silverlight control when enabling the Publishing features:
    <CustomAction
    Id="CreatePublishingPage"
    GroupId="WebPages"
    Location="Microsoft.SharePoint.Create"
    Sequence="100"
    Title="$Resources:cmscore,Create_WebPages_PublishedPage;"
    Description="$Resources:cmscore,Create_WebPages_PublishedPage_Description;"
    ImageUrl="/_layouts/images/ltpp.png">
    <UrlAction Url="_Layouts/CreatePage.aspx" />
    </CustomAction>
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Cannot "Add new Item" in my SharePoint 2010 custom lists

    Hi guys,
                All these days it was working fine and all of sudden now when i click on "Add new item" in the the custom lists which i have created in my SharePoint 2010 and fill in the fields and click "save",
    I am getting an exception...:( 
    Please HELP!!!
    Neo Alpha

    One more thread for the same issue
    http://social.msdn.microsoft.com/Forums/en-US/51f37f3b-18a3-4d6b-b90f-2a4240306bf8/when-update-a-folders-property-it-throw-a-comexception-0x81020089
    hope this will help you
    Senthilrajan Kaliyaperumal

  • Sharepoint 2010 - Cannot make field Required in Add New Item form.

    I made a fleld Required by making the proper selection in List Settings > Editing the column.  It now shows as required when I edit an existing record in the list, but is not required when adding a new item.  Why does the setting not apply
    to the Add New Item form?  How can I make it apply/required?
    btw, there are no content types associated with the list.

    Hi  ,
    According to your description, my understanding is that you cannot make field required in the list new form.
    For my test, I created a custom list , added a non-required field and added some records. Then I made the field required. But it worked fine as expected both in existing records and  in Add New Item
    form.
    Do you have some customization in your list new form?
    You can go to your list -> Customize Form under  list tab, then the new form will be opened in the InfoPath. In the InfoPath, right click the field and select Text Box Properties, make sure “Cannot
    be blank”  has been checked.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • PerformancePoint Designer is not loading when clicking on "Add new item" from PerformancePoint Content List

    Hello,
    I am using Internet Explorer 9 to create a new item by launching Performance Point Dashboard Designer from browser. 
    When i click on "Add new item", an Iframe will open showing dashboard design redirect which keep loading for couple of minutes and the designer never opens. 
    Yes, there are working workarounds like opening these links in other tab or opening dashboard designer directly or by clicking on "Run Dashboard Designer"  from BI Center homepage. 
    However, Can someone please help me how to get designer opened when "Add new item" has been clicked from  PerformancePoint Content List from browser? 
    Thanks in advance.
    NKV Prasad Panthangi

    An Update :
    I found this is due to the browser limitation. 
    I have downgraded my Internet Explorer Browser to IE 8 and did the following changes in my browser settings. 
    Tools --> Internet Options --> Navigate to Security Tab --> Click on Custom Level Button --> Under Download --> Select "Enable" radio box for Automatic Prompting for File Downloads. 
    Sadly, I cannot ask users to downgrade their browser to IE 8 because MS already stopped support for this browser and there are no other solution for this except going by workarounds. 
    This clearly says why people are moving away from PerformancePoint Services in SharePoint. 
    Thanks
    NKV Prasad Panthangi

  • Change value of a control in a list item new or edit form depending on the page level view Add New Item being clicked.

    I have a list which has a underlying infopath form for insert and edit a record.
    The list has various views spread across different pages .
    Now depending on different pages "New Item", a value for the form will have a corresponding value.
    If there is a single line of text control in the list, and depending ona page name, the value for the single line text should be autofilled when Add new item is clicked.
    How do i achieve that?
    Thanks...

    Hi,
    According to your description, there are several list views in your list, there is a textbox control which holds the “Single Line of Text” type of data in your custom
    form. When users click the “Add new item” button in one of the existing list views, you want the textbox control in the custom form to be populated automatically.
    By default, when user clicks the “Add new item” button in a list view, the URL of the custom form page will contain the name of that list view page, thus, a workaround
    which requires custom code can be like this:
    After the form page loaded, we can extract the name of the list view page from the URL, then populate it into the textbox control immediately. This can be achieved
    using jQuery.
    About how to
    get URL parameters of current page using jQuery:
    http://www.jquerybyexample.net/2012/06/get-url-parameters-using-jquery.html
    About
    adding jQuery into InfoPath form:
    http://riteshudupak.blogspot.com/2010/09/add-jquery-to-browser-enabled-infopath.html
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • How Do I add new fields to Repeating Frames in existing Report

    Hi,
    How do I add new fields to Repeating Frames in existing Report. The Report has 2 GRPFR, 1 HDR and 2 Repeating Frames. I would like to add a new field(column) to inner most repeating frame. I added the new golumn to QUERY and GROUPs in Data Model. After adding the new column to inner most Repeating Frame in Layout Model, the Layout model is losing all other frame and it is showing only the modified one.
    How do I add new column to repeating frames without disturbeing other frames.
    Any hellp will be appreciated!!!!!!!!!!!.
    I am using Oracle Reports 6i.
    Thanks,
    Ravi.

    you must work in your layour editor
    expand your repeating frames do it more big
    for add your new items or field. after you inserted or add, can you put more little your repeating.
    too can you to do one copy of one field in your repeating frame and assign it in his source your new item in your data model.
    normally i begin with the principal frame and go one by one internally.

  • How to disable add on compatiblity checking in Firefox 4 beta?

    How to disable add on compatiblity checking in Firefox 4 beta?

    See http://kb.mozillazine.org/Extensions.checkCompatibility
    You can create a new Boolean pref extensions.checkCompatibility.4.0b with the value false.
    See also:
    *Add-on Compatibility Reporter: https://addons.mozilla.org/firefox/addon/15003/

  • How do you add master items in iBook Author?

    Everytime I add a page to my book the same interactive image window appears as if it were a master item. How do you add master items and how do you eliminate it from happening on subsequent new pages?
    Message was edited by: Onnie Clem

    Onnie Clem - There are master layouts. To uncover & use them go to the View menu and select Show Laouts (3rd iten down). They appear in the top portion of the sidebar. Make universal changes here.
    I highly recommend everyone download and read this free book from O'Reilly press, Publishing With iBooks Author :
    http://shop.oreilly.com/product/0636920025597.do
    Reading this book and absorbing its contents will eliminate 95% of all the questions asked in this forum.
    - Fabe
    P.S. there is a separate iBooks Author forum.

  • How to disable programmatically an item in a Descriptive flexfield

    Hi friends,
    doy you know How to disable programmatically an item in a Descriptive flexfield using CUSTOM.pll?
    The problem is that I need to do it under the WHEN-NEW-RECORD-INSTANCE event, and the item (based in an attribute column of a database table) hasn't a canvas asociated at that moment....
    Do you have any example?
    Thanks,
    Jose.

    Hi Prashant,
    mmm yes, for now there are two fields it he DFF window.. but in a future .. may be more..
    I've found a function:
    fnd_flex_key_api.enable_column that may be properly for that, but I don't know what to pass in the the first parameter (flexfield IN flexfield_type)...
    I mean: I suppose is the "name" for my DFF but.. how can I get it?
    Thanks,
    jose.

  • Add new item to OPC server in LabView

    Hi. I want to connect my PLC Unitronics Jazz to LabView using OPC Server. It have OPC Server called UniOPC Server. I don't know how to add an Item in LabView.
    UniOPC don't have option to add new Item - I have to do this by opc client. In OPC QuickClient I can see UniOPC server, and there I can add Item and change values of variables (for example I can change value of MB0 - Memory Bit 0) but in LabView when I try to use this in VI project I have error: "Error 0x0000002A connecting to .../plc.MB0".
    I would like to try to add new Item without QuickClient - in LabView and see if that works. Can someone help me, please?

    Hi there,
    According to the following link, you might not be able to connect your PLC to LabVIEW:
    http://www.ni.com/white-paper/6417/en
    In general, if you would like to establish a connection between LabVIEW and a PLC, here is a step-by-step guide:
    http://www.ni.com/white-paper/7450/en
    Regards,
    Norbert

  • Why "New Item" in ribbon and "Add new item" in xsllistview link to different form

    Hi all,
    I have a question. I have a list with two new forms, one is created in SPD the other one is created in InfoPath (both forms are created by developer).
    I don't know why the new form link to different page when I click "New Item" in ribbon and "Add new item" in list view.
    1. Will open new form that created in InfoPath when click on "New Item" in ribbon.
    2. Will open new form that created in SPD when click on "Add new item" in list view.

    One way to do this would be to hold the urls for the pages you need to display in a table. You could then build the links as one of the columns of a report using some fancy SQL.<br>
    <br>
    Or you could make a simple function to return the correct link based on the relevant parameters:<br>
    <br>
    create or replace function get_url (p_criteria in varchar2) return varchar2<br>
    is<br>
    lv_url varchar2(500);<br>
    begin<br>
    if p_criteria = 'Personal' then<br>
    lv_url := 'http://host:port/pls/portal/etc...';<br>
    end if;<br>
    etc...<br>
    return '&LT;a href="' || lv_url || '"&GT;' || p_criteria || '&LT;/a&GT;';<br>
    end;<br>
    <br>
    Your report could then include the function as one of the columns in your report.<br>
    Not very elegant but it should do the job.
    Patrick.

Maybe you are looking for

  • Error ORA-04031 while executing a stored procedure from Pro C++ code

    I am getting the error ORA-04031(Unable to allocate 4096 bytes of shared memory("Shared Pool",.....)) while trying to execute a stored procedure from my pro*C application. This happens only after a few hours since the application has been running. I

  • Changing the Color of an Object in Elements 4.0

    Neither of the two methods documented in Elements 4.0 to change the color of an object seem to work on my object. It is a fleur-de-lis that I extracted from a PDF an artist made for me some time ago. It's now black and I want to make it gold. What am

  • Why is the 'Next' button in 508 Screen Reader mode not working for RichTree

    Hi ADF Experts, My JDeveloper version is 11.1.1.8. The 'Next' button in 508 Screen Reader mode for tables works fine. However, it does not work for trees, I can see only the first 23 or so items. Any ideas? What am I missing here? Regards, -ab

  • When watching youtube on Waterfox 8.0.1 there is no buffer.

    When watching Youtube videos on Waterfox 8.0.1 there is no buffer. The videos load, but not with buffer (obvious when video is paused). I'm using Flash Player 11.2.202.95 Beta 2 (Non-IE) 64-bit Works fine on IE9 with Flash Player 11.2.202.95 Beta 2 (

  • Will apple tv version 1 run hulu plus

    I am using a Apple Tv generation 1 to have composite video instead of HDMI to connect to a lower resolution tv. I want to use Hulu Plus which does run on later generation Apple Tv's. When I start up the Apple Tv I do not see Hultu as a supported prog