From 50dfc9097da5fe075e353bc95c1b609dd484a0f0 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Tue, 19 May 2020 16:51:17 +0200 Subject: [PATCH] Update form_customization.rst --- form/bootstrap4.rst | 2 ++ form/form_customization.rst | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/form/bootstrap4.rst b/form/bootstrap4.rst index cc19dd2f8c9..e96db1afb3b 100644 --- a/form/bootstrap4.rst +++ b/form/bootstrap4.rst @@ -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 -------------- diff --git a/form/form_customization.rst b/form/form_customization.rst index 3094eb08f40..9c4a32919f2 100644 --- a/form/form_customization.rst +++ b/form/form_customization.rst @@ -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)