{% if include.form %} {%- assign name = include.field[0] | append: ']' | prepend: '[' | prepend: include.form -%} {%- assign id = include.field[1].id | default: name | replace: '[', '_' | remove: ']' -%} {% else %} {%- assign name = include.field[0] -%} {%- assign id = include.field[1].id | default: name %} {% endif %} {%- assign label = include.field[1].label[site.locale] -%} {%- assign help = include.field[1].help[site.locale] -%} {%- assign error = include.field[1].error[site.locale] -%} {%- assign autocomplete = include.field[1].autocomplete -%} {%- assign hidden = include.field[1].label.hidden -%}