> For the complete documentation index, see [llms.txt](https://doc.orbeon.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.orbeon.com/form-runner/component/open-select1.md). Agents can also search and read this documentation through its [MCP server](https://doc.orbeon.com/~gitbook/mcp).

# Open selection component

## Availability

\[SINCE Orbeon Forms 2016.1]

## What it does

The `fr:open-select1` component presents:

* a list of choices predefined by the form author (as radio buttons by default, or as a dropdown menu with `appearance="minimal"`)
* and a custom choice ("Other") which the user has the option to specify instead

<figure><img src="https://4129616727-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEkBiSDvlXs3VWiO0Zu%2F-LEkBmMpnaxnftLGDglW%2F-LEkBzP3AfwSd3tEmF1D%2Fxbl-open-select1.png?generation=1528743336640214&amp;alt=media" alt="Open selection component" width="375"><figcaption></figcaption></figure>

## Usage

You use `fr:open-select1` like a regular `xf:select1` control:

```markup
<fr:open-select1 id="flavor" bind="flavor-bind">
    <xf:label>Make your selection</xf:label>
    <xf:item>
        <xf:label>Chocolate</xf:label>
        <xf:value>chocolate</xf:value>
    </xf:item>
    <xf:item>
        <xf:label>Vanilla</xf:label>
        <xf:value>vanilla</xf:value>
    </xf:item>
    <xf:item>
        <xf:label>Strawberry</xf:label>
        <xf:value>strawberry</xf:value>
    </xf:item>
</fr:open-select1>
```

## 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:

<figure><img src="https://4129616727-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LEkBiSDvlXs3VWiO0Zu%2Fuploads%2Fgit-blob-3e0d85783d4527f8e213e07f80183a5540471caa%2Fxbl-open-select1-minimal-please-select.png?alt=media" alt="Open selection component with minimal appearance in its default Please select state" width="276"><figcaption><p>Default state with no selection</p></figcaption></figure>

<figure><img src="https://4129616727-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LEkBiSDvlXs3VWiO0Zu%2Fuploads%2Fgit-blob-4368edf59a5ae186c009cb3656f4d58880f9ede5%2Fxbl-open-select1-minimal.png?alt=media" alt="Open selection component with minimal appearance and Other selected" width="276"><figcaption><p>With "Other" selected</p></figcaption></figure>

\[SINCE Orbeon Forms 2026.1]

With `appearance="minimal"` (Dropdown with "Other"):

* When the bound value is empty, the dropdown defaults to "Please select:" (omitted if the itemset already includes an item with an empty value) at full width, with the text field hidden.
* When the user selects "Other", the text field appears next to the dropdown and receives focus. If a predefined choice was previously selected, the bound value is cleared.
* Clearing the text field, leaving the control while "Other" is selected with an empty value, or clearing the bound value externally returns the dropdown to "Please select:" at full width and hides the text field.
* Minimal label appearance is supported (showing the label in the first dropdown item, like other dropdown controls).

With `appearance="full"` (Radio Buttons with "Other"), the text field remains visible as before.

## 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.
