File tree Expand file tree Collapse file tree 26 files changed +52
-107
lines changed
Filter options
Expand file tree Collapse file tree 26 files changed +52
-107
lines changed
Original file line number Diff line number Diff line change @@ -226,17 +226,15 @@ compound
226
226
This option specifies if a form is compound. The value is by default
227
227
overridden by the value of the ``expanded `` option.
228
228
229
- .. include :: /reference/forms/types/options/empty_data.rst.inc
230
- :end-before: DEFAULT_PLACEHOLDER
229
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
231
230
232
231
The actual default value of this option depends on other field options:
233
232
234
233
* If ``multiple `` is ``false `` and ``expanded `` is ``false ``, then ``'' ``
235
234
(empty string);
236
235
* Otherwise ``[] `` (empty array).
237
236
238
- .. include :: /reference/forms/types/options/empty_data.rst.inc
239
- :start-after: DEFAULT_PLACEHOLDER
237
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
240
238
241
239
error_bubbling
242
240
~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -384,13 +384,11 @@ Not all options are listed here - only the most applicable to this type:
384
384
385
385
.. include :: /reference/forms/types/options/by_reference.rst.inc
386
386
387
- .. include :: /reference/forms/types/options/empty_data.rst.inc
388
- :end-before: DEFAULT_PLACEHOLDER
387
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
389
388
390
389
The default value is ``[] `` (empty array).
391
390
392
- .. include :: /reference/forms/types/options/empty_data.rst.inc
393
- :start-after: DEFAULT_PLACEHOLDER
391
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
394
392
395
393
error_bubbling
396
394
~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -35,13 +35,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
35
35
36
36
.. include :: /reference/forms/types/options/disabled.rst.inc
37
37
38
- .. include :: /reference/forms/types/options/empty_data.rst.inc
39
- :end-before: DEFAULT_PLACEHOLDER
38
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
40
39
41
40
The default value is ``'' `` (the empty string).
42
41
43
- .. include :: /reference/forms/types/options/empty_data.rst.inc
44
- :start-after: DEFAULT_PLACEHOLDER
42
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
45
43
46
44
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
47
45
Original file line number Diff line number Diff line change @@ -91,17 +91,15 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
91
91
92
92
.. include :: /reference/forms/types/options/disabled.rst.inc
93
93
94
- .. include :: /reference/forms/types/options/empty_data.rst.inc
95
- :end-before: DEFAULT_PLACEHOLDER
94
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
96
95
97
96
The actual default value of this option depends on other field options:
98
97
99
98
* If ``multiple `` is ``false `` and ``expanded `` is ``false ``, then ``'' ``
100
99
(empty string);
101
100
* Otherwise ``[] `` (empty array).
102
101
103
- .. include :: /reference/forms/types/options/empty_data.rst.inc
104
- :start-after: DEFAULT_PLACEHOLDER
102
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
105
103
106
104
.. include :: /reference/forms/types/options/help.rst.inc
107
105
Original file line number Diff line number Diff line change @@ -68,17 +68,15 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
68
68
69
69
.. include :: /reference/forms/types/options/disabled.rst.inc
70
70
71
- .. include :: /reference/forms/types/options/empty_data.rst.inc
72
- :end-before: DEFAULT_PLACEHOLDER
71
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
73
72
74
73
The actual default value of this option depends on other field options:
75
74
76
75
* If ``multiple `` is ``false `` and ``expanded `` is ``false ``, then ``'' ``
77
76
(empty string);
78
77
* Otherwise ``[] `` (empty array).
79
78
80
- .. include :: /reference/forms/types/options/empty_data.rst.inc
81
- :start-after: DEFAULT_PLACEHOLDER
79
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
82
80
83
81
.. include :: /reference/forms/types/options/help.rst.inc
84
82
Original file line number Diff line number Diff line change @@ -28,13 +28,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
28
28
29
29
.. include :: /reference/forms/types/options/disabled.rst.inc
30
30
31
- .. include :: /reference/forms/types/options/empty_data.rst.inc
32
- :end-before: DEFAULT_PLACEHOLDER
31
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
33
32
34
33
The default value is ``'' `` (the empty string).
35
34
36
- .. include :: /reference/forms/types/options/empty_data.rst.inc
37
- :start-after: DEFAULT_PLACEHOLDER
35
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
38
36
39
37
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
40
38
Original file line number Diff line number Diff line change @@ -288,17 +288,15 @@ type:
288
288
289
289
.. include :: /reference/forms/types/options/disabled.rst.inc
290
290
291
- .. include :: /reference/forms/types/options/empty_data.rst.inc
292
- :end-before: DEFAULT_PLACEHOLDER
291
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
293
292
294
293
The actual default value of this option depends on other field options:
295
294
296
295
* If ``multiple `` is ``false `` and ``expanded `` is ``false ``, then ``'' ``
297
296
(empty string);
298
297
* Otherwise ``[] `` (empty array).
299
298
300
- .. include :: /reference/forms/types/options/empty_data.rst.inc
301
- :start-after: DEFAULT_PLACEHOLDER
299
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
302
300
303
301
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
304
302
Original file line number Diff line number Diff line change @@ -49,8 +49,7 @@ option on the form.
49
49
50
50
.. _reference-form-option-empty-data :
51
51
52
- .. include :: /reference/forms/types/options/empty_data.rst.inc
53
- :end-before: DEFAULT_PLACEHOLDER
52
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
54
53
55
54
The actual default value of this option depends on other field options:
56
55
@@ -61,8 +60,7 @@ The actual default value of this option depends on other field options:
61
60
* If ``data_class `` is not set and ``compound `` is ``false ``, then ``'' ``
62
61
(empty string).
63
62
64
- .. include :: /reference/forms/types/options/empty_data.rst.inc
65
- :start-after: DEFAULT_PLACEHOLDER
63
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
66
64
67
65
.. _reference-form-option-error-bubbling :
68
66
Original file line number Diff line number Diff line change @@ -44,13 +44,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
44
44
45
45
.. include :: /reference/forms/types/options/data.rst.inc
46
46
47
- .. include :: /reference/forms/types/options/empty_data.rst.inc
48
- :end-before: DEFAULT_PLACEHOLDER
47
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
49
48
50
49
The default value is ``'' `` (the empty string).
51
50
52
- .. include :: /reference/forms/types/options/empty_data.rst.inc
53
- :start-after: DEFAULT_PLACEHOLDER
51
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
54
52
55
53
.. include :: /reference/forms/types/options/error_mapping.rst.inc
56
54
Original file line number Diff line number Diff line change @@ -88,13 +88,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
88
88
89
89
.. include :: /reference/forms/types/options/disabled.rst.inc
90
90
91
- .. include :: /reference/forms/types/options/empty_data.rst.inc
92
- :end-before: DEFAULT_PLACEHOLDER
91
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
93
92
94
93
The default value is ``'' `` (the empty string).
95
94
96
- .. include :: /reference/forms/types/options/empty_data.rst.inc
97
- :start-after: DEFAULT_PLACEHOLDER
95
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
98
96
99
97
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
100
98
Original file line number Diff line number Diff line change @@ -93,17 +93,15 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
93
93
94
94
.. include :: /reference/forms/types/options/disabled.rst.inc
95
95
96
- .. include :: /reference/forms/types/options/empty_data.rst.inc
97
- :end-before: DEFAULT_PLACEHOLDER
96
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
98
97
99
98
The actual default value of this option depends on other field options:
100
99
101
100
* If ``multiple `` is ``false `` and ``expanded `` is ``false ``, then ``'' ``
102
101
(empty string);
103
102
* Otherwise ``[] `` (empty array).
104
103
105
- .. include :: /reference/forms/types/options/empty_data.rst.inc
106
- :start-after: DEFAULT_PLACEHOLDER
104
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
107
105
108
106
.. include :: /reference/forms/types/options/help.rst.inc
109
107
Original file line number Diff line number Diff line change @@ -81,17 +81,15 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
81
81
82
82
.. include :: /reference/forms/types/options/disabled.rst.inc
83
83
84
- .. include :: /reference/forms/types/options/empty_data.rst.inc
85
- :end-before: DEFAULT_PLACEHOLDER
84
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
86
85
87
86
The actual default value of this option depends on other field options:
88
87
89
88
* If ``multiple `` is ``false `` and ``expanded `` is ``false ``, then ``'' ``
90
89
(empty string);
91
90
* Otherwise ``[] `` (empty array).
92
91
93
- .. include :: /reference/forms/types/options/empty_data.rst.inc
94
- :start-after: DEFAULT_PLACEHOLDER
92
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
95
93
96
94
.. include :: /reference/forms/types/options/help.rst.inc
97
95
Original file line number Diff line number Diff line change @@ -89,13 +89,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
89
89
90
90
.. include :: /reference/forms/types/options/disabled.rst.inc
91
91
92
- .. include :: /reference/forms/types/options/empty_data.rst.inc
93
- :end-before: DEFAULT_PLACEHOLDER
92
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
94
93
95
94
The default value is ``'' `` (the empty string).
96
95
97
- .. include :: /reference/forms/types/options/empty_data.rst.inc
98
- :start-after: DEFAULT_PLACEHOLDER
96
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
99
97
100
98
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
101
99
Original file line number Diff line number Diff line change @@ -78,13 +78,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
78
78
79
79
.. include :: /reference/forms/types/options/disabled.rst.inc
80
80
81
- .. include :: /reference/forms/types/options/empty_data.rst.inc
82
- :end-before: DEFAULT_PLACEHOLDER
81
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
83
82
84
83
The default value is ``'' `` (the empty string).
85
84
86
- .. include :: /reference/forms/types/options/empty_data.rst.inc
87
- :start-after: DEFAULT_PLACEHOLDER
85
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
88
86
89
87
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
90
88
Original file line number Diff line number Diff line change
1
+ ``empty_data``
2
+ ~~~~~~~~~~~~~~
3
+
4
+ **type **: ``mixed``
Original file line number Diff line number Diff line change 1
- ``empty_data``
2
- ~~~~~~~~~~~~~~
3
-
4
- **type**: ``mixed``
5
-
6
- .. This file should only be included with start-after or end-before that' s
7
- set to this placeholder value. Its purpose is to let us include only
8
- part of this file.
9
-
10
- DEFAULT_PLACEHOLDER
11
-
12
1
This option determines what value the field will *return * when the submitted
13
2
value is empty (or missing). It does not set an initial value if none is
14
3
provided when the form is rendered in a view.
Original file line number Diff line number Diff line change @@ -53,13 +53,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
53
53
54
54
.. include :: /reference/forms/types/options/disabled.rst.inc
55
55
56
- .. include :: /reference/forms/types/options/empty_data.rst.inc
57
- :end-before: DEFAULT_PLACEHOLDER
56
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
58
57
59
58
The default value is ``'' `` (the empty string).
60
59
61
- .. include :: /reference/forms/types/options/empty_data.rst.inc
62
- :start-after: DEFAULT_PLACEHOLDER
60
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
63
61
64
62
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
65
63
Original file line number Diff line number Diff line change @@ -83,13 +83,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
83
83
84
84
.. include :: /reference/forms/types/options/disabled.rst.inc
85
85
86
- .. include :: /reference/forms/types/options/empty_data.rst.inc
87
- :end-before: DEFAULT_PLACEHOLDER
86
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
88
87
89
88
The default value is ``'' `` (the empty string).
90
89
91
- .. include :: /reference/forms/types/options/empty_data.rst.inc
92
- :start-after: DEFAULT_PLACEHOLDER
90
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
93
91
94
92
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
95
93
Original file line number Diff line number Diff line change @@ -43,13 +43,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
43
43
44
44
.. include :: /reference/forms/types/options/disabled.rst.inc
45
45
46
- .. include :: /reference/forms/types/options/empty_data.rst.inc
47
- :end-before: DEFAULT_PLACEHOLDER
46
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
48
47
49
48
The default value is ``'' `` (the empty string).
50
49
51
- .. include :: /reference/forms/types/options/empty_data.rst.inc
52
- :start-after: DEFAULT_PLACEHOLDER
50
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
53
51
54
52
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
55
53
Original file line number Diff line number Diff line change @@ -28,13 +28,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
28
28
29
29
.. include :: /reference/forms/types/options/disabled.rst.inc
30
30
31
- .. include :: /reference/forms/types/options/empty_data.rst.inc
32
- :end-before: DEFAULT_PLACEHOLDER
31
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
33
32
34
33
The default value is ``'' `` (the empty string).
35
34
36
- .. include :: /reference/forms/types/options/empty_data.rst.inc
37
- :start-after: DEFAULT_PLACEHOLDER
35
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
38
36
39
37
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
40
38
Original file line number Diff line number Diff line change @@ -34,13 +34,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
34
34
35
35
.. include :: /reference/forms/types/options/disabled.rst.inc
36
36
37
- .. include :: /reference/forms/types/options/empty_data.rst.inc
38
- :end-before: DEFAULT_PLACEHOLDER
37
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
39
38
40
39
The default value is ``'' `` (the empty string).
41
40
42
- .. include :: /reference/forms/types/options/empty_data.rst.inc
43
- :start-after: DEFAULT_PLACEHOLDER
41
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
44
42
45
43
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
46
44
Original file line number Diff line number Diff line change @@ -27,15 +27,13 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
27
27
28
28
.. include :: /reference/forms/types/options/disabled.rst.inc
29
29
30
- .. include :: /reference/forms/types/options/empty_data.rst.inc
31
- :end-before: DEFAULT_PLACEHOLDER
30
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
32
31
33
32
From an HTTP perspective, submitted data is always a string or an array of strings.
34
33
So by default, the form will treat any empty string as null. If you prefer to get
35
34
an empty string, explicitly set the ``empty_data `` option to an empty string.
36
35
37
- .. include :: /reference/forms/types/options/empty_data.rst.inc
38
- :start-after: DEFAULT_PLACEHOLDER
36
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
39
37
40
38
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
41
39
Original file line number Diff line number Diff line change @@ -33,13 +33,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
33
33
34
34
.. include :: /reference/forms/types/options/disabled.rst.inc
35
35
36
- .. include :: /reference/forms/types/options/empty_data.rst.inc
37
- :end-before: DEFAULT_PLACEHOLDER
36
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
38
37
39
38
The default value is ``'' `` (the empty string).
40
39
41
- .. include :: /reference/forms/types/options/empty_data.rst.inc
42
- :start-after: DEFAULT_PLACEHOLDER
40
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
43
41
44
42
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
45
43
You can’t perform that action at this time.
0 commit comments