10000 Update form_customization.rst · symfony/symfony-docs@50dfc90 · GitHub
[go: up one dir, main page]

Skip to content

Commit 50dfc90

Browse files
ThomasLandauerwouterj
authored andcommitted
Update form_customization.rst
1 parent d991ca4 commit 50dfc90

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

form/bootstrap4.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ If you prefer to apply the Bootstrap styles on a form to form basis, include the
7777
{{ form(form) }}
7878
{% endblock %}
7979

80+
.. _reference-forms-bootstrap-error-messages:
81+
8082
Error Messages
8183
--------------
8284

form/form_customization.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ Renders any errors for the given field.
255255
{# render any "global" errors not associated to any form field #}
256256
{{ form_errors(form) }}
257257
258+
.. caution::
259+
260+
In the Bootstrap 4 form theme, ``form_errors()`` is already included
261+
in ``form_label()``, see ":ref:`reference-forms-bootstrap-error-messages`"
262+
258263
.. _reference-forms-twig-widget:
259264

260265
form_widget(form_view, variables)

0 commit comments

Comments
 (0)
0