Radiobutton List

    Alias: Umbraco.RadioButtonList

    Returns: string

    Pretty much like the name indicates this Data type enables editors to choose from list of radio buttons and returns the value of the selected item as string.

    Data Type Definition Example

    Radiobutton List Data Type Definition

    Content Example

    Radiobutton List Content

    MVC View Example

    Typed

    Without Modelsbuilder

    @if (Model.HasValue("colorTheme"))
    {
        var value = Model.Value("colorTheme");
        <p>@value</p>
    }
    

    With Modelsbuilder

    @if (Model.HasValue("colorTheme"))
    {
        var value = Model.ColorTheme;
        <p>@value</p>
    }