You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WTForms form_errors are form-wide (non-field) error messages
These are not displayed by render_form()
An example, say you wanted to validate that username and password are not the same...this would be a form-error and not an error specific to a given field
Could add something like this near the top of the form:
{% if form.form_errors %}
<div class="alert alert-danger" role="alert"><ul>
{% for error in form.form_errors %}
<li>{{error}}</li>
{% endfor %}
</ul></div>
{% endif %}
The text was updated successfully, but these errors were encountered:
WTForms form_errors are form-wide (non-field) error messages
These are not displayed by
render_form()
An example, say you wanted to validate that username and password are not the same...this would be a form-error and not an error specific to a given field
Could add something like this near the top of the form:
The text was updated successfully, but these errors were encountered: