CHOICE Element
The CHOICE element is used to define a choice within a choice field.
Syntax
<CHOICES>
<CHOICE
Value = "Text">
</CHOICE>
<CHOICE
Value = "Text">
</CHOICE>
...
</CHOICES>
Attributes
Name | Description |
---|---|
Value | Optional Text. Can be used to specify an identifier for the choice. |
Related Elements
Parent Elements |
---|
CHOICES |
Remarks
Remember that CAML is case-sensitive; the CHOICE and CHOICES elements are in all capital letters.
The CHOICE element contains the value within its body.
Example
This example defines a choice field with three choices.
<CHOICES>
<CHOICE>Not Started</CHOICE>
<CHOICE>In Progress</CHOICE>
<CHOICE>Completed</CHOICE>
</CHOICES>