helloflask / helloflask/bootstrap-flask
form_errors are not displayed
Open
form
- Dominant language
- SCSS
- Stars
- 1.2k
- Forks
- 193
- Avg merge
- 4m
- Merged PRs (30d)
- 3
Description
WTForms [form_errors](https://wtforms.readthedocs.io/en/3.0.x/forms/#wtforms.form.Form.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 %}
- {{error}}
{% for error in form.form_errors %}
{% endfor %}
{% endif %}
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.