Radio Fieldtype

Radio buttons. The "you can only have one" variation of checkboxes. Create some options and let your users select one and only one. May they choose wisely.

radio.png Fieldtype UI
Behold! The Radio Fieldtype!


The radio fieldtype is a multiple choice input where you only get one choice. It saves the chosen option from a preset list.


Use the options setting to define a list of values and labels.

  type: radio
  instructions: Choose your favorite food.
    donuts: Donuts
    icecream: Ice Cream
    brownies: Brownies

You may omit the labels and just specify keys. If you use this syntax, the value and label will be identical.

    - Donuts
    - Ice Cream
    - Brownies

Data Structure

The chosen option is stored as a string. If you only specified values for the options array, then the label will be saved.

favorite: brownies


It’s a string, so you can just use that value.

<p>I love {{ favorite }}. A lot.</p>
<p>I love donuts. A lot.</p>

Config Options

inline bool

Show the radio buttons next to each other in a row instead of stacked vertically. Default: false

options array

Sets of key/value pairs define the values and labels of the radio options.

Betterify this page on Github!