A newer version of

Freeform

is available.

Try Freeform 5 now →

Templating

Row object

The Row object contains all of the Fields assigned to it in the form builder. It can contain up to 4 fields/columns. The Row object doesn't contain any properties, methods or non render field types such as a Hidden fields. Instead, it's an iterable object where you have to iterate over it to get the Fields contained within.

Usage in Templates

Render all rows and fields of the currently active page within a form:

{% for row in form %}
  <div class="row">
    {% for field in row %}
      <div class="field">
        {{ field.label }}
      </div>
    {% endfor %}
  </div>
{% endfor %}
1
2
3
4
5
6
7
8
9