Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update form_customization.rst #13685

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions form/bootstrap4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ If you prefer to apply the Bootstrap styles on a form to form basis, include the
{{ form(form) }}
{% endblock %}

.. _reference-forms-bootstrap-error-messages:

Error Messages
--------------

Expand Down
5 changes: 5 additions & 0 deletions form/form_customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,11 @@ Renders any errors for the given field.
{# render any "global" errors not associated to any form field #}
{{ form_errors(form) }}

.. caution::

In the Bootstrap 4 form theme, ``form_errors()`` is already included
in ``form_label()``, see ":ref:`reference-forms-bootstrap-error-messages`"

.. _reference-forms-twig-widget:

form_widget(form_view, variables)
Expand Down