Skip to content

Commit 1e278c4

Browse files
committed
Added note about customizing errors for different field types.
1 parent 236d06b commit 1e278c4

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

cookbook/form/form_customization.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,17 @@ and customize the ``form_errors`` fragment.
771771
See :ref:`cookbook-form-theming-methods` for how to apply this customization.
772772

773773
You can also customize the error output for just one specific field type.
774-
For example, certain errors that are more global to your form (i.e. not specific
775-
to just one field) are rendered separately, usually at the top of your form:
774+
To customize *only* the markup used for these errors, follow the same directions
775+
as above but put the contents in a relative ``_errors`` block (or file in case
776+
of PHP templates). For example: ``text_errors`` (or ``text_errors.html.php``).
777+
778+
.. tip::
779+
780+
See :ref:`form-template-blocks` to find out which specific block or file you
781+
have to customize.
782+
783+
Certain errors that are more global to your form (i.e. not specific to just one
784+
field) are rendered separately, usually at the top of your form:
776785

777786
.. configuration-block::
778787

0 commit comments

Comments
 (0)