{{checkboxlist}}

checkboxlist Properties

Represents multiple true/false values

Field Type Description
object_type string Will always be "checkboxlist".
is_valid True|False Indicates whether or not this references a checkbox.
value string 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.
output html String containing the text from all of the checked checkboxes.
output_in_list html Same as output.
field_id string The identifier for this field.
default_value string The default value for this field if no value is specified.
options object 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.
selected list A list containing the values from all of the checked checkboxes.
values list A list containing the text from all of the checked checkboxes.
count number The number of checked checkboxes.

Examples

Checkbox Include Partial Template

Copy

Show Sidebar? {{ page.show_sidebar }}

{% if page.show_sidebar.checked %} {% include "Sidebar" %} {% endif %}