Enumeration Fields
The following field
element defines an
enumeration
field with the name
review-type
:
<field type="enumeration" name="review-type"> <enumeration value="film"/> <enumeration value="play"/> <enumeration value="book"/> <enumeration value="game"/> </field>
Note the following points:
-
in CUE an
enumeration
field is displayed either as a drop-down list from which the user can make a single selection or as multi-select list from which the user can make multiple selections. -
The example above displays a
drop-down
list. To display a multi-select list you must add amultiple="true"
attribute to the field element.