Skip to main content

Select

The select field allows users to choose a single option from a dropdown menu. This field is ideal for presenting a list of predefined choices in a compact format.

Example

fields:
  country:
    type: select
    label: Select Your Country
    options:
      de: Germany
      us: United States
    placeholder: Choose a country

Field Properties

Name Type Default Description
aria string

Optional aria label for better accessibility.

autofocus bool false

Set autofocus on field.

error string | array

Costum error message for translation or customization.

help string | array

Optional help text below the field

label string | array

The field label can be set as string or associative array with translations

options array

Defines the available choices for the select field as key-value pairs. Each option_key must be unique, and the labels can support multiple languages.

required bool

Defines whether the field is mandatory for form submission.

title string | array

Tooltip displayed when the user hovers over the field (supports multilingual configurations).

width string 1/1

The width of the field in the 12 columns field grid.