Share via


RemoveFieldRef 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.

Specifies a column reference, included in the parent content type, to be removed from this content type.

You need only specify the ID attribute of the RemoveFieldRef element. Windows SharePoint Services ignores all other attributes of this element.

<RemoveFieldRef
  DefaultValue="Text"
  Description="Text"
  DisplayName="Text"
  Format="Text"
  Filterable="TRUE" | "FALSE"
  FilterableNoRecurrence="TRUE" | "FALSE"
  FromBaseType="TRUE" | "FALSE"
  Hidden="TRUE" | "FALSE" | "orResource"
  ID="Text"
  Locked="TRUE" | "FALSE"
  Name="Text"
  Node="Text"
  NumLines="Integer"
  ReadOnly="TRUE" | "FALSE"
  ReadOnlyClient="TRUE" | "FALSE"
  Required="TRUE" | "FALSE"
  Sealed="TRUE" | "FALSE"
  ShowInDisplayForm="TRUE" | "FALSE"
  ShowInEditForm="TRUE" | "FALSE"
  ShowInFileDlg="TRUE" | "FALSE"
  ShowInListSettings="TRUE" | "FALSE"
  ShowInNewForm="TRUE" | "FALSE"
  Sortable="TRUE" | "FALSE" />

Attributes

Attribute

Description

DefaultValue

Optional Text. Windows SharePoint Services does not use this attribute in this element.

Description

Optional Text. Windows SharePoint Services does not use this attribute in this element.

DisplayName

Optional Text. Windows SharePoint Services does not use this attribute in this element.

Format

Optional Text. Windows SharePoint Services does not use this attribute in this element.

Filterable

Optional Boolean. Windows SharePoint Services does not use this attribute in this element.

FilterableNoRecurrence

Optional Boolean. Windows SharePoint Services does not use this attribute in this element.

FromBaseType

Optional Boolean. Windows SharePoint Services does not use this attribute in this element.

Hidden

Optional Boolean. Windows SharePoint Services does not use this attribute in this element.

ID

Optional Text. Specifies the field ID of the column to be removed from this content type.

Locked

Optional Boolean. Windows SharePoint Services does not use this attribute in this element.

Name

Optional Text. Windows SharePoint Services does not use this attribute in this element.

Node

Optional Text. Windows SharePoint Services does not use this attribute in this element.

NumLines

Optional Integer. Windows SharePoint Services does not use this attribute in this element.

ReadOnly

Optional Boolean. Windows SharePoint Services does not use this attribute in this element.

Required

Optional Boolean. Windows SharePoint Services does not use this attribute in this element.

Sealed

Optional Boolean. Windows SharePoint Services does not use this attribute in this element.

ShowInDisplayForm

Optional Boolean. Windows SharePoint Services does not use this attribute in this element.

ShowInEditForm

Optional Boolean. Windows SharePoint Services does not use this attribute in this element.

ShowinFileDlg

Optional Boolean. Windows SharePoint Services does not use this attribute in this element.

ShowInListSettings

Optional Boolean. Windows SharePoint Services does not use this attribute in this element.

ShowInNewForm

Optional Boolean. Windows SharePoint Services does not use this attribute in this element.

Sortable

Optional Boolean. Windows SharePoint Services does not use this attribute in this element.

Child Elements

None.

Parent Elements

FieldRefs Element (ContentType)

Occurrences

Minimum: 0

Maximum: No limit

Remarks

If the RemoveFieldRef element specifies a column that is not included in the parent content type, Windows SharePoint Services disregards the element.

Example

The following example shows RemoveFieldRef elements specifying several columns to remove from a content type.

<FieldRefs>
  <RemoveFieldRef ID=FID_Attachments Name="Attachments" /> <!-- Attachments -->
  <RemoveFieldRef ID=FID_WorkflowVersion Name="WorkflowVersion" /> <!-- WorkflowVersion -->
  <RemoveFieldRef ID=FID_GUID Name="GUID" /> <!-- GUID -->
  <RemoveFieldRef ID=FID_WorkflowInstanceID Name="WorkflowInstanceID" /> <!-- WorkflowInstanceID -->
</FieldRefs>

See Also

Concepts

Content Type Definition Schema

Fields and Field References

Other Resources

Content Types