Export (0) Print
Expand All

MAPPINGS Element (List)

Last modified: July 15, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

In this article
Attributes
Child Elements
Parent Elements
Occurrences

Contains mappings of values to the choices displayed within a Choice field.


<MAPPINGS>
    <MAPPING
      Value = "Text">
    </MAPPING>
  ...
</MAPPINGS>

Attribute

Description

None

N/A

Minimum: 0

Maximum: 1

The following excerpt shows how to implement the MAPPINGS element in a Choice field.

<Field ID="{c15b34c3-ce7d-490a-b133-3f4de8801b76}" Type="Choice" Name="Status" DisplayName="$Resources:core,Tasks_Status;" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Status">
  <CHOICES>
    <CHOICE>$Resources:core,Tasks_NotStarted;</CHOICE>
    <CHOICE>$Resources:core,Tasks_InProgress;</CHOICE>
    <CHOICE>$Resources:core,Tasks_Completed;</CHOICE>
    <CHOICE>$Resources:core,Tasks_Deferred;</CHOICE>
    <CHOICE>$Resources:core,Tasks_Waiting;</CHOICE>
  </CHOICES>
  <MAPPINGS>
    <MAPPING Value="1">$Resources:core,Tasks_NotStarted;</MAPPING>
    <MAPPING Value="2">$Resources:core,Tasks_InProgress;</MAPPING>
    <MAPPING Value="3">$Resources:core,Tasks_Completed;</MAPPING>
    <MAPPING Value="4">$Resources:core,Tasks_Deferred;</MAPPING>
    <MAPPING Value="5">$Resources:core,Tasks_Waiting;</MAPPING>
  </MAPPINGS>
  <Default>$Resources:core,Tasks_NotStarted;</Default>
</Field>
Show:
© 2014 Microsoft