TIP

WE'RE HIRING! 💼

The Solspace team is expanding! If you love Craft CMS and you’re looking for an exciting full-time remote position working on software development for the Freeform and Calendar plugins for Craft and more, we’d love to hear from you!

Check Out Job Listing!

Row object

The Row object contains all of the Fields assigned to it in the composer. 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
Last Updated: 1/15/2020, 4:39:52 PM