Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

CHOICE Element (List)

Windows SharePoint Services 3

Used to define a choice within a Choice field.


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

Value

Optional Text. Can be used to specify an identifier for the choice.

Minimum: 0

Maximum: Unbounded

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.

The following example defines a Choice field with three choices.

<CHOICES>
  <CHOICE>Not Started</CHOICE>
  <CHOICE>In Progress</CHOICE>
  <CHOICE>Completed</CHOICE>
</CHOICES>
    
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.