Now I'm defining a new Custom List Definition
within a Custom Content Type
, The problem simply is the Title
field associated with the list can't be hidden, I have followed some approaches found in the below links but with no success.
Simply adding the List definition
without implementing a content type makes the Title field disappeared, but when defining the content type and its fields, it's always visible.
Elements.xml
<ContentType ID="0x01003EBF692DD17B4F71966712180C0D23D8" Name="ContactUsAssignments"
Description="Contact Us Assignments content type">
<FieldRefs>
<FieldRef ID="{4B888F48-A039-46D0-B2E1-C67802097069}"/>
<FieldRef ID="{6238a52d-2975-4e8a-9a1e-31b9cdc74129}"/>
<RemoveFieldRef ID="{D3D0DDF1-F791-4FFF-893C-0C100B724F1A}" />
</FieldRefs>
</ContentType>
I've also tried Inherits="FALSE" Version="0"
but unfortunately nothing changed.
Schema.xml
<ContentTypes>
<ContentTypeRef ID="0x01003EBF692DD17B4F71966712180C0D23D8"></ContentTypeRef>
</ContentTypes>
<Fields>
<Field Type="Text" DisplayName="Title" Required="FALSE"
ID="{D3D0DDF1-F791-4FFF-893C-0C100B724F1A}" StaticName="Title" Name="Title" Hidden="TRUE" />
</Fields>
I don't know exactly if I've missed something, but the approach is clear enough. Thanks.
Best Answer
All the answers mentioned here were tested, but with no success. After many investigations and attributes-combination I've came up with the below answer as the working one.
a. On
Elements.xml
file on eachlist Definition
make sure thatfor the
Content Type
.for the "
Title
" field definition.b. Remove any reference for
Title
Field onschema.xml