This document is for an older version of

Freeform

.

View latest version →

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 or methods. 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