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.
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 each list Definition
make sure that
Inherits="FALSE"
for the Content Type
.
Hidden="TRUE" Required="FALSE" DisplayName="_hidden"
for the "Title
" field
definition.
<ContentType ID="0x01007F465964D8114436BD7D7CF2C2D8CF01" Name="Categories" Group="Category CT" Description="Category content type" Inherits="FALSE">
<FieldRefs>
<FieldRef ID="{BA7EBEF9-338B-45DE-9743-E394873060A7}"/>
<FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Hidden="TRUE" Required="FALSE" DisplayName="_hidden" />
</FieldRefs>
</ContentType>
b. Remove any reference for Title
Field on schema.xml