Select

Create a list of predefined options to populate a simple HTML select field.


Preview

Select Fieldtype

Usage

Select fields need to define a list of options. They can be a simple list — where the stored value and display label are one and the same, or a key/value pair, allowing you to customize both the value and the label.

List Example

oscar_winner:
  type: select
  options:
    - Tommy Wiseau
    - Greg Sistero
    - James Franco

Value/Label Example

oscar_winner:
  type: select
  options:
    tommy: Tommy Wiseau
    greg: Greg Sistero
    james: James Franco

Settings

This fieldtype supports the following settings in addition to the defaults.

options

array

A set of key/value pairs that define the values and labels.

default

string

The default, preselected option.

Last modified on January 23, 2018