{% 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 -%}
{%- if error -%}
{{ error }}
{%- endif -%} {%- if help -%} {{ help }} {%- endif -%}