Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-07T15:05:17.017Z
Answers.Text: Ok too bad it isn't stored globally for the form, but this'll work for now :)
Answers.UserDisplayName: Sten Van den Bergh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-07T14:57:51.723Z
Answers.LastActivityDate: 2016-11-07T14:57:51.723Z
Answers.UserDisplayName: Solspace
Body: <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>
  
Tags: <templating><form><plugin-freeform>
Title: Solspace Freeform: loop over all form errors
ThreadText: # 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://username_1.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 :)  
  
  ---
  
  