{% load webform_tags %} {# The public form. Context: webform, runtime_form, submission_success, confirmation_message, turnstile_site_key; optional action_url, next_url, hide_title, preview (the builder's preview: nothing is sent). #} {# A site that overrides this template needs: enctype="multipart/form-data" on the form when runtime_form.is_multipart (file uploads), {% turnstile_widget webform %} before the button, and {% turnstile_script webform %} once on the page. #}
{% if not hide_title or webform.intro %}
{% if not hide_title %}

{{ webform.title }}

{% endif %} {% if webform.intro %}
{{ runtime_form.intro_html|webform_html }}
{% endif %}
{% endif %} {% if submission_success %}
{{ confirmation_message }}
{% else %}
{% if not preview %}{% csrf_token %}{% endif %} {% if next_url %}{% endif %} {% if runtime_form.non_field_errors %}{% endif %} {% if runtime_form.has_required %}

marks a question you must answer.

{% endif %} {% for row in runtime_form.layout_items %} {% if row.field %} {% with field=row.field item=row.item %}
{% if row.is_consent or item.field_type == 'boolean' %} {% if field.help_text %}

{{ field.help_text }}

{% endif %} {% elif row.is_group %}
{{ field.label }}{% if field.field.required %} (required){% endif %} {% if field.help_text %}

{{ field.help_text }}

{% endif %} {{ field }}
{% else %} {{ field }} {% if field.help_text %}

{{ field.help_text }}

{% endif %} {% endif %} {% if field.errors %}{% endif %}
{% endwith %} {% else %}
{% if row.heading %}

{{ row.heading }}

{% endif %} {% if row.body_html %}
{{ row.body_html|webform_html }}
{% endif %}
{% endif %} {% endfor %} {% if preview %} {% if webform.require_turnstile %}

The spam-protection check (Cloudflare Turnstile) appears here.

{% endif %} {% else %} {% turnstile_widget webform %} {% endif %}
{% endif %}