<p>There currently isn't a way to get all errors directly from the form, but you could do it this way for now:</p>

<pre><code>{% for row in form %}
    {% for field in row %}
        {% for error in field.getErrors %}
            {{ error }}
        {% endfor %}
    {% endfor %}
{% endfor %}
</code></pre>

CC BY-SA 3.0
2016-11-07T15:05:17.017Z
Ok too bad it isn't stored globally for the form, but this'll work for now :)
Sten Van den Bergh
CC BY-SA 3.0
2016-11-07T14:57:51.723Z
2016-11-07T14:57:51.723Z
Solspace
<p>I can only find the following method in the documentation (<a href="https://solspace.com/craft/freeform/docs/form/#templates" rel="nofollow noreferrer">https://solspace.com/craft/freeform/docs/form/#templates</a>)</p>

<pre><code>form.hasErrors
</code></pre>

<p>Is there an array available with all the error messages combined? I'm looking for a way to iterate over all form errors.</p>

<templating><form><plugin-freeform>
Solspace Freeform: loop over all form errors
# Solspace Freeform: loop over all form errors

(Asked by: username_0 on 2016-11-07)

I can only find the following method in the documentation (https://solspace.com/craft/freeform/docs/form/#templates)
form.hasErrors

Is there an array available with all the error messages combined? I'm looking for a way to iterate over all form errors.

**Tags:** templating, form, plugin-freeform

---

## 1 answers

### Answer by username_1 on 2016-11-07. Score: 1 | Accepted answer

There currently isn't a way to get all errors directly from the form, but you could do it this way for now:
{% for row in form %}
    {% for field in row %}
        {% for error in field.getErrors %}
            {{ error }}
        {% endfor %}
    {% endfor %}
{% endfor %}

> **Comments:**
> **username_0**: Ok too bad it isn't stored globally for the form, but this'll work for now :)  

---

