Used to group a number xfoption elements.
Not all markup languages support option groups or nested groups, so captions may not display on some devices.
Attribute | Description | Type | Default | Options | Use |
---|---|---|---|---|---|
caption | The caption for the group | xs:string | none | required | |
class | Assigns a class name to an element | xs:NMTOKEN | none | optional | |
expr | An MCS expression | xs:string | none | optional | |
id | Assigns an identifier to an element | xs:ID | none | optional | |
prompt | Prompt text | xs:string | none | optional |
<?xml version="1.0" encoding="UTF-8"?>
<canvas layoutName="/forms.mlyt" pageTitle="xfoptgroup">
<xfform name="formControls" action="download.jsp">
<xfsiselect name="select" caption="Options" captionPane="controlCaption1"
entryPane="controlEntry1">
<xfoptgroup caption="Set of options #1:">
<xfoption caption="option 1.1" value="11"/>
<xfoption caption="option 1.2" value="12"/>
<xfoption caption="option 1.3" value="13"/>
</xfoptgroup>
<xfoptgroup caption="Set of options #2:">
<xfoption caption="option 2.1" value="21"/>
<xfoption caption="option 2.2" value="22"/>
<xfoption caption="option 2.3" value="23"/>
</xfoptgroup>
</xfsiselect>
</xfform>
</canvas>
The forms.mlyt layout may have the following structure.