Export (0) Print
Expand All

CHOICES Element (List)

Last modified: May 30, 2008

Applies to: SharePoint Foundation 2010

In this article
Attributes
Child Elements
Parent Elements
Occurrences

Used to define several choices within a field for a drop-down list.


<CHOICES>
  <CHOICE
    Value = "Text">
  </CHOICE>
  <CHOICE
    Value = "Text">
  </CHOICE>
  ...
</CHOICES>

Attribute

Description

None

N/A

Minimum: 0

Maximum: 1

Within a CHOICES element, each CHOICE element contains a value that appears in the list.

Remember that CAML is case-sensitive; the CHOICE and CHOICES elements are in all capital letters.

This example defines a Choice field with three choices.

<CHOICES>
  <CHOICE>Not Started</CHOICE>
  <CHOICE>In Progress</CHOICE>
  <CHOICE>Completed</CHOICE>
</CHOICES>
Show:
© 2014 Microsoft