DisplayPattern Element (List)

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.

Used in computed fields to define how the field is rendered. The DisplayPattern section in the declaration for a computed field describes how the constituent fields are combined to form the computed field. For example, LinkTitle is a computed field type that combines Title and ID fields for a particular list item.







Child Elements


Parent Elements



Minimum: 0

Maximum: 1


The DisplayPattern element is used in Onet.xml and Major Schema Definition Files files.

The built-in data types (such as Integer, Text, etc.) also have display patterns, which are defined in the FldTypes.xml file. The Field element can contain display patterns and, for this reason, can be used to apply rich formatting to values (unlike the Column element, which simply returns raw data).


The following example creates a computed field called LinkField that combines values of the Title and ID fields to form links such as <a href="form.htm?ID=7">This is the title</a>.

<Field Name="LinkField" Type="Computed">
      <FieldRef Name="Title"/>
      <FieldRef Name="ID"/>
      <HTML><![CDATA[<a href="form.htm?ID="]]></HTML>
      <Column Name="ID"/>
      <Column Name="Title"/>