FieldRefs Element

The FieldRefs element is a collection of FieldRef elements that are used to define computed fields.

Syntax

<FieldRefs>
  <FieldRef></FieldRef>
  <FieldRef></FieldRef>
  .
  .
  .
</FieldRefs>
Parent Elements Child Elements
Field FieldRef

Example

The example below creates a computed field called Field1 that combines values of the Title and ID fields to form a hyperlink such as <a href="form.htm?ID=7"Value of ID">Value of Title</a>.

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