Orbeon Forms
Search…
Open selection

Availability

[SINCE Orbeon Forms 2016.1]

What it does

The fr:open-select1 component presents:
    a list of radio buttons predefined by the form author
    and a custom choice ("Other") which the user has the option to specify instead
Open selection component

Usage

You use fr:open-select1 like a regular xf:select1 control:
1
<fr:open-select1 id="flavor" bind="flavor-bind">
2
<xf:label>Make your selection</xf:label>
3
<xf:item>
4
<xf:label>Chocolate</xf:label>
5
<xf:value>chocolate</xf:value>
6
</xf:item>
7
<xf:item>
8
<xf:label>Vanilla</xf:label>
9
<xf:value>vanilla</xf:value>
10
</xf:item>
11
<xf:item>
12
<xf:label>Strawberry</xf:label>
13
<xf:value>strawberry</xf:value>
14
</xf:item>
15
</fr:open-select1>
Copied!

Advanced usage

fr:open-select1 supports the following attributes:
    appearance
      full: shows radio buttons (the default)
      minimal: shows a dropdown menu
This is the control with the minimal appearance:
Open selection component with `minimal` appearance

Data format

The predefined radio buttons have a label and a value, and, like all radio buttons, store their value into the data.
The text of the custom choice entered by the user is saved directly into the data.