The item element

Release 2.0 - ...

This element specifies the storage value and label to represent an item in a list. It is found within elements select1 and select, or grouped in element choices.

Example

XML CopyCode image Copy Code
<xforms:item>
   <xforms:label>Vanilla</xforms:label>
   <xforms:value>v</xforms:value>
</xforms:item>

Attributes

Name Required / optional Description
Common Attributes optional Any attribute from the Common Attributes collection (e.g. id).

Content

Within anĀ item element, the following child elements are allowed:

Element Name Required / optional Description
label required Provides a descriptive label for the containing form control
value required This element provides a storage value to be used when an item is selected.
UI Common optional Any element from the UI Common content set (help, hint, alert, any element from he Action group)

Specification

Link to the XForms specification: the item element.