FieldRefs element (List)
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
Contains a collection of FieldRef elements that specifiy field references for a field.
<FieldRefs>
<FieldRef></FieldRef>
<FieldRef></FieldRef>
...
</FieldRefs>
Attributes
None
Child elements
Parent elements
Occurrences
- Minimum: 0
- Maximum: 1
Example
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>