File tree 3 files changed +12
-10
lines changed
3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,18 @@ See :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType`.
9
9
The ``form `` type predefines a couple of options that are then available
10
10
on all fields.
11
11
12
- .. include :: /reference/forms/types/options/compound.rst.inc
13
-
14
12
.. include :: /reference/forms/types/options/data.rst.inc
15
13
16
14
.. include :: /reference/forms/types/options/data_class.rst.inc
17
15
16
+ .. include :: /reference/forms/types/options/action.rst.inc
17
+
18
+ .. include :: /reference/forms/types/options/method.rst.inc
19
+
18
20
.. include :: /reference/forms/types/options/empty_data.rst.inc
19
21
22
+ .. include :: /reference/forms/types/options/compound.rst.inc
23
+
20
24
.. include :: /reference/forms/types/options/required.rst.inc
21
25
22
26
.. include :: /reference/forms/types/options/label.rst.inc
@@ -62,7 +66,3 @@ on all fields.
62
66
.. include :: /reference/forms/types/options/post_max_size_message.rst.inc
63
67
64
68
.. include :: /reference/forms/types/options/pattern.rst.inc
65
-
66
- .. include :: /reference/forms/types/options/action.rst.inc
67
-
68
- .. include :: /reference/forms/types/options/method.rst.inc
Original file line number Diff line number Diff line change 6
6
7
7
**type**: ``string `` **default**: empty string
8
8
9
- This option specifies where to send the form's data on submission (usually an
9
+ This option specifies where to send the form's data on submission (usually a
10
10
URI). Its value is rendered as the ``action`` attribute of the ``form``
11
11
element. An empty value is considered a same-document reference, i.e. the form
12
12
will be submitted to the same URI that rendered the form.
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ used to decide whether to process the form submission in the
26
26
27
27
.. note:
28
28
29
- Only the PATCH method allows submitting partial data without that missing
30
- fields are set to ``null`` in the underlying data (preserving default
31
- values, if any).
29
+ The PATCH method allows submitting partial data. In other words, if the
30
+ submitted form data is missing certain fields, those will be ignored
31
+ and the default values (if any) will be used. With all other HTTP methods,
32
+ if the submitted form data is missing some fields, those fields are set
33
+ to ``null``.
You can’t perform that action at this time.
0 commit comments