import block.block.meta.template as form_block with context -%}

    {%- set form_id = 'form-' ~ fieldname ~ '-' ~ index -%}
    {%- set settings = form_modules[fieldname][index] -%}

    {{- form_block.render(block.value, settings, form_id) -}}

{%- endmacro -%}
