Required field in custom content type not required in custom list instance

I have an issue with a custom SharePoint 2013 solution. Among other components, it consists of:
a feature with several custom fields with different types, some of which are taxonomy fields,
a feature with three custom content types using different sets of the custom fields with partially different configuration, e.g. whether they are required or not,
a feature with a custom document library template and instance using two of the custom content types and a default picture library that is programmatically customized when the feature is activated, e.g. it is assigned the third custom content type.
When deploying the solution and activating the feature, everything is set up correctly except a single taxonomy field for one of the doc lib's content types. It is defined to be required in both content types but indeed it does not show up as required for
the default content type whereas everything works fine for the other. And it does not matter which of the two custom content types is defined first (= default) in the list template's schema.xml, the issue always occurs for the same taxonomy field in the doc
lib's default content type. When I use the built-in Document content type as default, the field is required for both custom content types. However, using the Document content type is not an option.
If you think this behavior is not strange enough: When the list content type's field is set required through the SharePoint UI, it becomes optional again when the list column is updated, e.g. its display name is changed.
Any ideas?

Hi,
Thank you for your question.
We are currently looking into this issue and will give you an update as soon as possible.
Thank you for your understanding and support.
Linda Li                
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]
Linda Li
TechNet Community Support

Similar Messages

  • Can I add Custom Content Type created programmatically to Custom List Definition?

    I have created Custom content type programmatically in the Feature Receiver. Followed by this have another feature which creates List Template. I want to add the custom content type to the list template.
    Using VS 2012, I added the custom content type to the list definition. The Schema.xml for the list definition looks as below:
    <ContentTypes>
    <ContentTypeRef ID="0x010100D7D9F4B1F4A9684BB44389571024B2EC00C393BB21B8AD7B41B62A87DF0501504D" />
    </ContentTypes>
    ID was automatically added by the VS tool.
    List Template is created, the new content Type is also added, but the Name is displayed as "Document" instead of the custom content type name. So I see two CTs with the name "Document".
    How can I achieve this? Any help is appreciated.

    Hi,
    Please add EnableContentTypes="TRUE" in the <List > tag.
    The following materials would be helpful:
    How to add custom content type to a custom list
    http://innersharepoint.blogspot.de/2009/10/how-to-add-custom-content-type-to.html
    SharePoint Custom List Definition with Content Type
    https://achrafsp.wordpress.com/2013/03/31/sharepoint-list-definition-with-content-type/
    Create a Custom SharePoint List Definition
    http://www.mssharepointtips.com/tip.asp?id=1188
    Best Regards
    Dennis Guo
    TechNet Community Support

  • SharePoint 2013 Custom Content Type with Site Column custom validations

    Hello,
    Can somebody please suggest me how I can create custom content type with site columns with custom validation to site columns programmatically?
    Thanks,
    Praveen Kumar Padmakaran

    Hi,
    From your description, my understanding is that you want to create content type with site column with validation.
    You could create a site column, and add some validation to the site column. After you could create a custom content type, please add the site column with validation to the content type. Please refer
    to this code below:
    static void Main(string[] args)
    // replace your url
    using (SPSite site = new SPSite("http://sp/sites/sp2013"))
    using (SPWeb web = site.OpenWeb())
    //define the type of the field
    SPFieldType type = SPFieldType.Number;
    // create a site column
    SPField field = CreateSiteColumn(web, "newTest", type, "");
    // add custom formula for the field
    SPFieldNumber fieldNumber = web.Fields.GetField("newTest") as SPFieldNumber;
    fieldNumber.ValidationFormula = "=[newTest]>5";
    fieldNumber.ValidationMessage = ">5";
    fieldNumber.Update();
    SPContentTypeId parentItemCTypeId = web.ContentTypes[0].Id;
    // create custom content type
    SPContentType contentType = CreateSiteContentType(web, "newContent", parentItemCTypeId, "Custom Content Types");
    // add the site column to the content type
    AddFieldToContentType(web, contentType, field);
    // add fiedl to contenttype
    public static void AddFieldToContentType(SPWeb web, SPContentType contentType, SPField field)
    if (contentType == null) return;
    if (contentType.Fields.ContainsField(field.Title)) return;
    SPFieldLink fieldLink = new SPFieldLink(field);
    contentType.FieldLinks.Add(fieldLink);
    contentType.Update();
    // create a custom content type
    public static SPContentType CreateSiteContentType(SPWeb web, string contentTypeName,SPContentTypeId parentItemCTypeId, string group)
    if (web.AvailableContentTypes[contentTypeName] == null)
    SPContentType itemCType = web.AvailableContentTypes[parentItemCTypeId];
    SPContentType contentType =
    new SPContentType(itemCType, web.ContentTypes, contentTypeName) { Group = @group };
    web.ContentTypes.Add(contentType);
    contentType.Update();
    return contentType;
    return web.ContentTypes[contentTypeName];
    // create a site column
    public static SPField CreateSiteColumn(SPWeb web, string displayName,SPFieldType fieldType, string groupDescriptor)
    if (!web.Fields.ContainsField(displayName))
    string fieldName = web.Fields.Add(displayName, fieldType, false);
    SPField field = web.Fields.GetFieldByInternalName(fieldName);
    field.Group = groupDescriptor;
    field.Update();
    return field;
    return web.Fields[displayName];
    You could refer to these articles:
    C# code to create Site Column, Content Type, and add fields to Content Type
    http://spshare.blogspot.jp/2013/10/c-code-to-create-site-column-content.html
    How to do custom validation for site column in SharePoint
    http://www.c-sharpcorner.com/uploadfile/anavijai/how-to-do-custom-validation-for-site-column-in-sharepoint/
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected].

  • 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

  • Cannot get rid of default field in a custom content type

    hi guys,
    I have custom content type based on Document Set in a List based on Document Library. I created both using XML declaration in SP solution.
    I have all fields in my content type which I declared, except to defult fields: 'Name' and 'Description'. I need to hide both of them. After I set Inherits="FALSE" in ContentType section in Elements.xml in ContentType description the field
    'Description' goes away. But the field 'Name' marked as required and stays.
    I've also tried to add RemoveFieldRef parameter to the same Elements file, but the field persists. I assume it comes from list definition, not content type. But I cannot figure out how to get this field out from list definition.
    Do I miss something?

    I am assuming that content type's elements.xml file is looking like this 
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
      <!-- Parent ContentType: Document Set (0x0120D520) -->
      <ContentType ID="0x0120D520008d2ff418027e4c31b54d155b98596748"
    Overwrite="True"
    Name="Custom Dossier"
    Group="Custom group"
    Description="Custom dossier"
    Inherits="True"
    Version="0">
        <FieldRefs>
                <FieldRef
    ID="{8D6C094C-3E1F-41f4-BEE3-25B27EE09702}"
    Name="Dossier_Nummer"
    DisplayName="Dossiernummer"
    Required="True" 
    />
        </FieldRefs>
        <XmlDocuments>
          <XmlDocument NamespaceURI="http://schemas.microsoft.com/office/documentsets/allowedcontenttypes">
            <act:AllowedContentTypes
    xmlns:act="http://schemas.microsoft.com/office/documentsets/allowedcontenttypes"
    LastModified="05/31/2012 08:46:56">
              <AllowedContentType
    id="0x0101"
    />
              <AllowedContentType
    id="0x0101000490d50c50624b6ca21c637ef39cd89b"
    />
            </act:AllowedContentTypes>
          </XmlDocument>
        </XmlDocuments>
      </ContentType>
    </Elements>
    In the FieldRef  section ,we have  <FieldRef
    ID="{8D6C094C-3E1F-41f4-BEE3-25B27EE09702}"
    Name="Dossier_Nummer"
    DisplayName="Dossiernummer"
    Required="True" 
    />  this field is there.
    Try to add ShowInNewForm="TRUE" ShowInEditForm="FALSE" those attributes.
    or    Hidden="FALSE" 
    Sorry for the bad English. Could you paste your code.So that we can assist u.

  • Fix for issue where update KB2760758 broke multiline text properties field in custom content type

    In September Microsoft Office update KB2760758 caused an issue with the multi-line field used in custom content type used in SharePoint 2010 document libraries.  KB2826026 apparently caused the same issue. 
    Users were not be able to save documents on the SP server (in a document library) as MS Word would prompt them with a "Required properties" error message stating: ".. correct the invalid or missing required properties".
    Several sources indicated that this was supposed to be fixed in the December Office updates, but I don't see an update that affects MSO.dll where the problem originates.  Does anyone know which update fixes the issue?

    I updated you on my blog post, but just to provide an update here for those searching, this issue is not fixed in the update to the MSO.DLL available in the Dec 2013 CU, and the product group currently has no ETA on a fix.
    Of course, PSS should update me as soon as they do hear of an ETA from the PG.
    Trevor Seward, MCC
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Microsoft Office update KB2760758 breaks multiline text properties field in custom content type

    Last week SharePoint users have reported issue with multi-line field used in custom content type used in SharePoint 2010 document libraries.
    Users were not be able to save documents on the server (in a document library) as 'word' would prompt them with a "Required properties" error message stating: ".. correct the invalid or missing required properties"
    After some research I found out that removing the following update KB2760758 would fix the problem.
    Obviously this is not an acceptable solution and I would like to know if this issue has been reported and a fix would be issued sooner than later.

    I got an answer already!  So it is a known issue and the update for this particular bug will be released in the Office 2010 December updates.
    It has to do with a bug in MSO.DLL (which we knew already) with versions of the DLL greater than 14.0.710x.xxxx.  You may want to inspect further updates prior to December to validate that they do not contain an updated version of this DLL.  This
    includes security and non-security updates that may be released between now and then.  Every KB has a listing of the DLLs it replaces, so be diligent about checking each update's KB for this particular DLL.
    Trevor Seward, MCC
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Created column not showing in the Document Library View for a Custom Content Type based on Document

    We have a custom content type based of Document Content Type. The OOTB "Created" column does not show up in the view as well as in the Site Settings -> Columns.
    But it shows up in the Display Form and Edit Form of the Item at the bottom "Created at " by " " and "Modified by" at by ""
    Would anyone know how to make this column appear as part of the view ?
    thanks,
    Harsh

    Hi,
    They should by default be possible to add to a view. The only reason they would disappear from the UI if someone has changed the attribute of the Field to hidden = true. You can verify that with PowerShell and if so you can use PowerShell to revert the setting
    to false.
    $w = Get-SPWeb http://dev13$f = $w.Fields.GetFieldByInternalName("Created")$f.Hidden$f.Hidden = $false$f.Update()

  • "could not save list changes to the server" while creating a new form in SharePoint Designer - custom content type

    i am getting "could not save list changes to the server" while creating a new form in SharePoint Designer.
    Actually the list was created with a custom content type. When i try to create a new form from the custom content type, it fails.
    However, when i try to create a form using item content type, it creates a form successfully.
    Could you please let me know hte workaroud for this.
    Tnx

    Hello,
    This link may be help you to create custom form using content types:
    http://blog.splibrarian.com/2011/03/21/using-content-types-to-modify-the-newform-aspx-and-editform-aspx-pages/
    Hemendra:Yesterday is just a memory,Tomorrow we may never see&lt;br/&gt; Please remember to mark the replies as answers if they help and unmark them if they provide no help &lt;br/&gt;(On vacation from 16th Oct to 28th Oct 2014)

  • Custom Content type based on "Link to a Document" does not open new folder in a dialog

    Hi,
       We have created a custom Content Type  based on "Link to a Document" (0x01010A) into a document library. When I use the New Document button on the ribbon, the "Link to a document" form appears on the same window, not as a dialog. If we
    use the "link to a document" content type it works fine.
      This issue occurs when creating the content type from the SharePoint UI as well as via XML (provisioning the content type).
       Is it a SharePoint bug or are we missing something?
    Thanks!
    Sergio

    Hi S3rgiones,
    I can reproduce your issue, when create a custom content type based on “Link to a Document” content type, create item using the content type, it will open the NewLink.aspx page in the same window not the modal dialog.
    In this situation, you can try to custom the content type and customize the form page for it, specify it in the content type customization, if this doesn’t work, you may need to custom the content type not inherit from the default link to
    a document, but customize it yourself.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • HELP: Extended Attributes Not Appearing In Instances of Custom Content Type

    From Java code I create a custom content type derived from Document and define some extended attributes with default values for that type. All done using the same methodology shown in the Developer's Guide and Oracle example code.
    I start ifsmgr and I can indeed see the content type and the extended attributes.
    If I however create an instance of this (custom) type, either from the Viewer (file Upload) or from Java code (using code simuilar to createDocument from the Oracle ContentModule example), the extended attributes do not appear!
    BUT, if I delete one of the extended attributes using ifsmgr (highlight one of my extened attributes, click on "Remove", and then "Apply"), from that point on the previously missing extended attributes appear (except for the one I deleted of course) when I create files of the custom type from either Java code or the Viewer. Furthermore, once I get ifs to "see" one of these extended attributes in this manner, I can delete the extended attribute and re-create it from Java at will and it will appear in created instances of my custom content type just fine.
    If however I add another new extended attribute to the custom content type, I have to do the "Remove/Apply" drill in ifsmgr to get this new attribute to appear in created files of my custom type.
    I've tried deleting all instances of the custom type and closing both ifsmgr and the Viewer, but unless I delete one of the extended attributes from ifsmgr I cannot get new extended attributes to appear.
    What do I need to do in my 9ifs Java code to get new custom content extended attributes to appear in instances of that custom type?
    Thank you,
    Jeff "Did Kafka Write ifs?" Rininger

    Dear @user10993347,
    As mentioned by @vinod2303, you need to maintain content relationships along with subscriptions.
    Regards,
    Saurabh

  • Custom content type and choice field

    Hi,
    I try to create costum content type in visual studio, and I want to add choice field to this content type, but I didn't found, how can I programmatically fill choice datasource
    Can anyone help me?
    Thanks,
    Mykie

    I've only done this one but I seem to recall packaging these up as XML as normal columns and sompl referenced them in the Content type definition.  Having had a quick look on the inertubes for a refresher, I think this might point you in the right direction.
    http://www.skylinetechnologies.com/Blog/Article/76/Creating-Lists-in-SharePoint-Using-Visual-Studio-2012.aspx
    Something like this should be your end product.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Error message while checking in Publishing page with custom content type.

    Hi,
    We have a custom page layout created from a custom content type. We have dragged some "Mandatory fields" on to the page.
    Even if i add all the fields on the page and click on check in, we are still getting the below error :
    "You must fill out all required properties before checking in this document."
    Regards,
    Amit

    Hi,
    We have a custom page layout created from a custom content type. We have dragged some "Mandatory fields" on to the page.
    Even if i add all the fields on the page and click on check in, we are still getting the below error :
    "You must fill out all required properties before checking in this document."
    Regards,
    Amit

  • I lost the ability to order and hide site columns if i use custom content type with a custom Create Form

    I have a team site collection and I want to add a new App of type Issue Tracking list. so I did the following:-
    From the site collection I created a new App of type issue tracking.
    Then from the site collection I created a new Content type named “CustomIssue” which has its parent as “Issue” content type.
    I went to the Issue tracking list and I changed the default content type from Issue , to the new “CustomeIssue” content type.
    I open the site collection using SP designer and I created a new Create form for my Issue tracking list based on the "CustomIssue" content type and I select to have the Create form as the default form when creating an item.
    Everything till this point worked well. But when I open the “customIssue” content type , and I re-order the columns and I hide some columns, this was not reflected inside the custom Create form …
    although when using the default content type and the default create form you can control the order of the fields and to specify if certain fields hold be hidden inside the Create form.. so can anyone advice on this please?

    Hi,
    According to your post, my understanding is that you lost the ability to order and hide site columns if i use custom content type with a custom Create Form.
    I try to reproduce the issue, the result is the same as yours.
    As a workaround, if I modify the custom content type form the site setting, and then change the NewForm as the default form, it will change the column orders.
    However, if I use the new created form as the default form, it will remain the original orders.
    I recommend that you modify the custom content type form the site setting, and then reset the NewForm as the default form.
    The result is as below:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support
    ok thanks for the explanation ,, but what if i want to change the order and hidde some fields in the future ,, do i have to chnage the defualt create form again ...

  • Document Set custom content type - welcome page missing

    Sharepoint 2013. 404 error on welcome page for a following content type based on document
    set:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Field ID="{B9B7D98D-A2D3-4191-9B30-C516C8EDD9F4}" DisplayName="Fieldpr41" Name="Fieldpr41" Type="Note" RichText="false" NumLines="3" Group="pr41" Overwrite="TRUE" />
    <!-- Parent ContentType: Document Set (0x0120D520) -->
    <ContentType ID="0x0120D5200062FEFD4873814585B3EFD57010F1F8AE"
    Name="ContentType41"
    Group="Custom Content Types"
    Description="My Content Type"
    Inherits="FALSE"
    ProgId="SharePoint.DocumentSet"
    Version="0">
    <FieldRefs>
    <FieldRef ID="{B9B7D98D-A2D3-4191-9B30-C516C8EDD9F4}" DisplayName="Fieldpr41" Name="Fieldpr41" />
    </FieldRefs>
    <XmlDocuments>
    <XmlDocument
    NamespaceURI=
    "http://schemas.microsoft.com/office/documentsets/welcomepagefields">
    <wpFields:WelcomePageFields
    xmlns:wpFields=
    "http://schemas.microsoft.com/office/documentsets/welcomepagefields"
    LastModified="1/1/2010 08:00:00 AM">
    <WelcomePageField id="83729202-DCA7-4BF8-A75B-56DDDE53189C" />
    </wpFields:WelcomePageFields>
    </XmlDocument>
    </XmlDocuments>
    </ContentType>
    </Elements>
    Here's
    what i did after changing Inherits parameter to FALSE: 1) added ProgId parameter 2) added wpFields section 
    Any ideas?

    Hi,
    According to your post, my understanding is that you got an error while creating custom document set content type.
    The issue is that you set the Inherits=”FALSE” in the element. If you set the Inherits=”TRUE”, the content type would work.
    Based on the article form MSDN:
    If Inherits is TRUE, the child content type inherits all fields that are in the parent, including fields that users have added.
    If Inherits is FALSE or absent and the parent content type is a built-in type, the child content type inherits only the fields that were in the parent content type when SharePoint Foundation was installed.
    The child content type does not have any fields that users have added to the parent content type.
    If Inherits is FALSE or absent and the parent content type was provisioned by a sandboxed solution, the child does not inherit any fields from the parent.
    It means if you set the Inherits to true, we would lose all our customization there.
    If we set Inherits="FALSE", which means you then have to remember to explicitly add into the definition all the stuff you should be inheriting, like the default Doc Set event receivers. 
    More reference:
    http://morefunthanapokeintheeye.blogspot.com/2012/10/how-to-successfully-provision-and.html
    http://ybbest.wordpress.com/2012/07/04/how-to-deploy-document-set-using-caml-in-sharepoint2010-solution-package/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

Maybe you are looking for

  • Refresh List view in Workflow

    Hi all, I am trying to create a customized list view using custom.js file. List is being created successfully, when i do a second online request in the same session on the same list, the list is loosing its css and is coming as a hyperlink. this has

  • Problem with Player class: Error: (28) class Player not found

    Hi, I had this error while attempting to use the Player object of media package. I am using JDeveloper 3.2 Error: (28) class Player not found in class lyee.Frame5. My program code has this shape. import java.awt.event.*; import java.applet.*; import

  • Problems with OAS Version 10.1.2.0.2

    Hallo, i have a few problems with my OAS. 1. I will open my Apllikation on a machine with Windows 7 and my Applikation crashed. But on a machine with Windows XP it's ok. 2. In the error log from the Apache I see the following: [Fri Oct 12 07:49:33 20

  • Install 10.4 PPC without monitor

    Hello, I'm in need of reinstalling 10.4 on a mac mini. Problem is is that it'll be running as a headless machine and it has a DVI port (and all I have here is Apple LED screens and a HDMI only LCD tv), so I need to install 10.4 on it without a monito

  • Sales Order Costing-Information/Message

    Dear All, At the time of sales order costing, if the Component Cost(material Cost) is 70% of Total cost , SAP system should display information or warning message. Please give your valuable suggestion