{% import "_includes/forms" as forms %} {{ forms.lightSwitchField({ label: "Custom values"|t('freeform'), instructions: "Enable this to specify custom values for each option label."|t('freeform'), class: 'custom-values', name: 'types[checkbox_group][customValues]', on: field.hasCustomOptionValues, }) }} {% for option in field.metaProperty('options', []) %} {% endfor %}
{{ "Label" }} {{ "Value" }} {{ "Is checked?" }}
{% set isChecked = option.value in field.getMetaProperty('values') or option.value == field.getMetaProperty('value') %}
{{ addRowLabel is defined ? addRowLabel : "Add an option"|t('freeform') }}