File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -771,8 +771,17 @@ and customize the ``form_errors`` fragment.
771
771
See :ref: `cookbook-form-theming-methods ` for how to apply this customization.
772
772
773
773
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:
776
785
777
786
.. configuration-block ::
778
787
You can’t perform that action at this time.
0 commit comments