Compartilhar via


CHOICES Element

The CHOICES element is used to define several choices within a field for a drop-down list.

Syntax

<CHOICES>
  <CHOICE></CHOICE>
  <CHOICE></CHOICE>
  ...
</CHOICES>

Element Relationships

Parent Elements Child Elements
Field CHOICE

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>