CHOICES Element (List)
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
Used to define several choices within a field for a drop-down list.
<CHOICES>
<CHOICE
Value = "Text">
</CHOICE>
<CHOICE
Value = "Text">
</CHOICE>
...
</CHOICES>
Attributes
Attribute |
Description |
---|---|
None |
N/A |
Child Elements
Parent Elements
Occurrences
Minimum: 0 Maximum: 1 |
Remarks
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.
Example
This example defines a Choice field with three choices.
<CHOICES>
<CHOICE>Not Started</CHOICE>
<CHOICE>In Progress</CHOICE>
<CHOICE>Completed</CHOICE>
</CHOICES>