{{ radio }}

Stores the selected value from a list of radio inputs

Properties

string object_type
Will always be "radio".
true/false is_valid
True if one of the defined options is selected.
string value
The selected value.
String selection
The text from the selected value.
html output
The text from the selected value.
html output_in_list
Same as output.
string field_id
The identifier for this field.
html default_value
The default value for this field if no value is specified.

Examples

{% unless entity.prize_frequency.value == 0 %}
	<p>Prizes are given away {{ entity.prize_frequency }}</p>
{% endunless %}

Developer Overview

Liquid Markup