xforms:select1

Purpose

A form control that provides for selection of a single choice from an available list of options; for example, a group of radio buttons.

Note:

Use the mcs-selection-list-style property to control visual appearance of the selection controls. Refer to Form properties for further information.

Contains

Attribute groups

Example

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
  xmlns:si="http://www.volantis.com/xmlns/2006/01/xdime2/si"
  xmlns:xforms="http://www.w3.org/2002/xforms">
  <head>
    <title>xforms:select1</title>
    <xforms:model id="selection">
      <xforms:instance>
        <si:instance>
          <si:item name="list"/>
        </si:instance>
      </xforms:instance>
    </xforms:model>
  </head>
  <body>
    <xforms:select1 model="selection" ref="list" style="mcs-selection-list-style: controls;">
      <xforms:label>Search by city</xforms:label>
      <xforms:item>
        <xforms:label>London</xforms:label>
        <xforms:value>London</xforms:value>
      </xforms:item>
      <xforms:item>
        <xforms:label>Paris</xforms:label>
        <xforms:value>Paris</xforms:value>
      </xforms:item>
      <xforms:item>
        <xforms:label>Sydney</xforms:label>
        <xforms:value>Sydney</xforms:value>
      </xforms:item>
    </xforms:select1>
  </body>
</html>

Related topics