{{ checkboxlist }}

Represents multiple true/false values

Properties

string object_type
Will always be "checkboxlist".
true/false is_valid
Always true.
string value
Delimited string containing the values from all of the checked checkboxes. For checkboxlist fields you do not typically care about this - use selected or values instead.
string output
String containing the text from all of the checked checkboxes.
html output_in_list
Same as output.
string field_id
The identifier for this field.
string default_value
The default value for this field if no value is specified.
object options
Contains all of the available options for this checkboxlist. Each option is a property on the object where they property key is the option value and the property value is the option text.
list selected
A list containing the values from all of the checked checkboxes.
list values
A list containing the text from all of the checked checkboxes.
number count
The number of checked checkboxes.

Examples

<p>Seating Apparatus: {{ entity.checkboxlist }}<p>
{% if entity.checkboxlist.values contains "Bring Your Own Blanket" %}
	<p>Please bring your own blanket to sit on</p>
{% endif %}
{% if entity.checkboxlist.count > 0 %}<ul>
	{% for value in entity.checkboxlist.selected %}
		<li>{{ entity.checkboxlist.options[value] }} ({{ value }})</li>
	{% endfor %}
</ul>{% endif %}

Developer Overview

Liquid Markup