Skip to content

Radio Options

Radio buttons: all options visible at once, exactly one chosen.

Settings:

SettingWhat it does
OptionsA static list, or read from a model — as in Select
ColumnsHow many options fit across, 3 by default
DefaultWhich option a new record starts on
RequiredAn empty value blocks saving

The stored value is one option's value, the same as a single-choice Select — the two differ only in how they are drawn.

Output:

html
<div class="layout layout--{$layout}">

Radio up to about seven options, a dropdown past that

Radio buttons pay for themselves when seeing every option at once helps the choice. A long list only eats the form; that is what Select is for.

© PageBlocks 2019-present