File tree 1 file changed +15
-0
lines changed
Filter options
1 file changed +15
-0
lines changed
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ on all types for which ``form`` is the parent type.
9
9
10
10
+-----------+--------------------------------------------------------------------+
11
11
| Options | - `action `_ |
12
+ | | - `allow_extra_fields `_ |
12
13
| | - `by_reference `_ |
13
14
| | - `cascade_validation `_ |
14
15
| | - `compound `_ |
@@ -52,6 +53,20 @@ Field Options
52
53
53
54
.. include :: /reference/forms/types/options/action.rst.inc
54
55
56
+ allow_extra_fields
57
+ ~~~~~~~~~~~~~~~~~~
58
+
59
+ .. versionadded :: 2.6
60
+ The ``allow_extra_fields `` option was introduced in Symfony 2.6.
61
+
62
+ **type **: ``boolean `` **default **: ``false ``
63
+
64
+ Usually, if you submit extra fields that aren't configured in your form,
65
+ you'll get a "This form should not contain extra fields." validation error.
66
+
67
+ You can silence this validation error by enabling the ``allow_extra_fields ``
68
+ option on the form.
69
+
55
70
.. include :: /reference/forms/types/options/by_reference.rst.inc
56
71
57
72
.. include :: /reference/forms/types/options/cascade_validation.rst.inc
You can’t perform that action at this time.
0 commit comments