FieldRefs Element (ContentType)
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
Represents a collection of column references included in the content type.
The FieldRefs element contains a collection of FieldRef Element (ContentType) elements. The FieldRef element is a reference to a column defined elsewhere, either at the site or list level. In the field reference, you can override a subset of the column properties, such as the following:
XML promotion and demotion attributes
Whether the field is read-only, required, or hidden
Changing these properties in the field reference only changes them as they apply to the specific content type that contains the field reference.
The DocumentTemplate Element (FieldRefs) child element is obsolete.
For more information about field references, see Fields and Field References.
The following example shows the field references collection for the Document content type. The example has been edited for clarity.
<ContentType ID="0x0101" Name="$Resources:Document" … <FieldRefs> <RemoveFieldRef ID=FID_Attachments Name="Attachments" /> <!-- Attachments --> <RemoveFieldRef ID=FID_WorkflowVersion Name="WorkflowVersion" /> <!-- WorkflowVersion --> … <FieldRef ID=FID_SelectFilename Name="SelectFilename" /> <!-- SelectFilename --> <FieldRef ID=FID_FileLeafRef Name="FileLeafRef" Required="TRUE"/> <!-- FileLeafRef --> <FieldRef ID=FID_Created Name="Created" Hidden="TRUE" /> <!-- Created --> <FieldRef ID=FID_Title Name="Title" Required="FALSE" ShowInNewForm="FALSE" ShowInEditForm="TRUE"/> <!-- Title --> … </FieldRefs> … </ContentType>