{% import '_includes/forms' as forms %} {% if field.allowMultiple %} {{ forms.checkboxGroup({ id : field.handle, name : field.handle, values: value, placeholder: 'Choose Sections...' | t('section-field'), options: sections }) }} {% else %} {{ forms.radioGroup({ id : field.handle, name : field.handle, value: value, placeholder: 'Choose a Section...' | t('section-field'), options: sections }) }} {% if value is iterable %}
{{ "Multiple sections selected, but field only allows one section. Selecting a new value will clear the existing multiple section selection." | t('section-field') }}
{% endif %} {% endif %}