Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

FieldRefs Element (List)

Last modified: April 15, 2010

Applies to: SharePoint Foundation 2010

In this article
Attributes
Child Elements
Parent Elements
Occurrences

Contains a collection of FieldRef elements that specifiy field references for a field.


<FieldRefs>
  <FieldRef></FieldRef>
  <FieldRef></FieldRef>
  ...
</FieldRefs>

Attribute

Description

None

N/A

Minimum: 0

Maximum: 1

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

<Field Name="myField" 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>
Show:
© 2015 Microsoft