File tree Expand file tree Collapse file tree 28 files changed +56
-115
lines changed Expand file tree Collapse file tree 28 files changed +56
-115
lines changed Original file line number Diff line number Diff line change @@ -217,17 +217,15 @@ compound
217
217
This option specifies if a form is compound. The value is by default
218
218
overridden by the value of the ``expanded `` option.
219
219
220
- .. include :: /reference/forms/types/options/empty_data.rst.inc
221
- :end-before: DEFAULT_PLACEHOLDER
220
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
222
221
223
222
The actual default value of this option depends on other field options:
224
223
225
224
* If ``multiple `` is ``false `` and ``expanded `` is ``false ``, then ``'' ``
226
225
(empty string);
227
226
* Otherwise ``[] `` (empty array).
228
227
229
- .. include :: /reference/forms/types/options/empty_data.rst.inc
230
- :start-after: DEFAULT_PLACEHOLDER
228
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
231
229
232
230
error_bubbling
233
231
~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -393,13 +393,11 @@ Not all options are listed here - only the most applicable to this type:
393
393
394
394
.. include :: /reference/forms/types/options/by_reference.rst.inc
395
395
396
- .. include :: /reference/forms/types/options/empty_data.rst.inc
397
- :end-before: DEFAULT_PLACEHOLDER
396
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
398
397
399
398
The default value is ``[] `` (empty array).
400
399
401
- .. include :: /reference/forms/types/options/empty_data.rst.inc
402
- :start-after: DEFAULT_PLACEHOLDER
400
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
403
401
404
402
error_bubbling
405
403
~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -60,13 +60,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
60
60
61
61
.. include :: /reference/forms/types/options/disabled.rst.inc
62
62
63
- .. include :: /reference/forms/types/options/empty_data.rst.inc
64
- :end-before: DEFAULT_PLACEHOLDER
63
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
65
64
66
65
The default value is ``'' `` (the empty string).
67
66
68
- .. include :: /reference/forms/types/options/empty_data.rst.inc
69
- :start-after: DEFAULT_PLACEHOLDER
67
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
70
68
71
69
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
72
70
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 @@ -74,17 +74,15 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
74
74
75
75
.. include :: /reference/forms/types/options/disabled.rst.inc
76
76
77
- .. include :: /reference/forms/types/options/empty_data.rst.inc
78
- :end-before: DEFAULT_PLACEHOLDER
77
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
79
78
80
79
The actual default value of this option depends on other field options:
81
80
82
81
* If ``multiple `` is ``false `` and ``expanded `` is ``false ``, then ``'' ``
83
82
(empty string);
84
83
* Otherwise ``[] `` (empty array).
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/help.rst.inc
90
88
Original file line number Diff line number Diff line change @@ -37,13 +37,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
37
37
38
38
.. include :: /reference/forms/types/options/disabled.rst.inc
39
39
40
- .. include :: /reference/forms/types/options/empty_data.rst.inc
41
- :end-before: DEFAULT_PLACEHOLDER
40
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
42
41
43
42
The default value is ``'' `` (the empty string).
44
43
45
- .. include :: /reference/forms/types/options/empty_data.rst.inc
46
- :start-after: DEFAULT_PLACEHOLDER
44
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
47
45
48
46
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
49
47
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 @@ -53,8 +53,7 @@ option on the form.
53
53
54
54
.. _reference-form-option-empty-data :
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 actual default value of this option depends on other field options:
60
59
@@ -65,8 +64,7 @@ The actual default value of this option depends on other field options:
65
64
* If ``data_class `` is not set and ``compound `` is ``false ``, then ``'' ``
66
65
(empty string).
67
66
68
- .. include :: /reference/forms/types/options/empty_data.rst.inc
69
- :start-after: DEFAULT_PLACEHOLDER
67
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
70
68
71
69
.. _reference-form-option-error-bubbling :
72
70
Original file line number Diff line number Diff line change @@ -50,13 +50,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
50
50
51
51
.. include :: /reference/forms/types/options/data.rst.inc
52
52
53
- .. include :: /reference/forms/types/options/empty_data.rst.inc
54
- :end-before: DEFAULT_PLACEHOLDER
53
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
55
54
56
55
The default value is ``'' `` (the empty string).
57
56
58
- .. include :: /reference/forms/types/options/empty_data.rst.inc
59
- :start-after: DEFAULT_PLACEHOLDER
57
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
60
58
61
59
.. include :: /reference/forms/types/options/error_mapping.rst.inc
62
60
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 @@ -114,17 +114,15 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
114
114
115
115
.. include :: /reference/forms/types/options/disabled.rst.inc
116
116
117
- .. include :: /reference/forms/types/options/empty_data.rst.inc
118
- :end-before: DEFAULT_PLACEHOLDER
117
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
119
118
120
119
The actual default value of this option depends on other field options:
121
120
122
121
* If ``multiple `` is ``false `` and ``expanded `` is ``false ``, then ``'' ``
123
122
(empty string);
124
123
* Otherwise ``[] `` (empty array).
125
124
126
- .. include :: /reference/forms/types/options/empty_data.rst.inc
127
- :start-after: DEFAULT_PLACEHOLDER
125
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
128
126
129
127
.. include :: /reference/forms/types/options/help.rst.inc
130
128
Original file line number Diff line number Diff line change @@ -87,17 +87,15 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
87
87
88
88
.. include :: /reference/forms/types/options/disabled.rst.inc
89
89
90
- .. include :: /reference/forms/types/options/empty_data.rst.inc
91
- :end-before: DEFAULT_PLACEHOLDER
90
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
92
91
93
92
The actual default value of this option depends on other field options:
94
93
95
94
* If ``multiple `` is ``false `` and ``expanded `` is ``false ``, then ``'' ``
96
95
(empty string);
97
96
* Otherwise ``[] `` (empty array).
98
97
99
- .. include :: /reference/forms/types/options/empty_data.rst.inc
100
- :start-after: DEFAULT_PLACEHOLDER
98
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
101
99
102
100
.. include :: /reference/forms/types/options/help.rst.inc
103
101
Original file line number Diff line number Diff line change @@ -111,13 +111,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
111
111
112
112
.. include :: /reference/forms/types/options/disabled.rst.inc
113
113
114
- .. include :: /reference/forms/types/options/empty_data.rst.inc
115
- :end-before: DEFAULT_PLACEHOLDER
114
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
116
115
117
116
The default value is ``'' `` (the empty string).
118
117
119
- .. include :: /reference/forms/types/options/empty_data.rst.inc
120
- :start-after: DEFAULT_PLACEHOLDER
118
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
121
119
122
120
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
123
121
Original file line number Diff line number Diff line change @@ -76,13 +76,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
76
76
77
77
.. include :: /reference/forms/types/options/disabled.rst.inc
78
78
79
- .. include :: /reference/forms/types/options/empty_data.rst.inc
80
- :end-before: DEFAULT_PLACEHOLDER
79
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
81
80
82
81
The default value is ``'' `` (the empty string).
83
82
84
- .. include :: /reference/forms/types/options/empty_data.rst.inc
85
- :start-after: DEFAULT_PLACEHOLDER
83
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
86
84
87
85
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
88
86
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 @@ -59,13 +59,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
59
59
60
60
.. include :: /reference/forms/types/options/disabled.rst.inc
61
61
62
- .. include :: /reference/forms/types/options/empty_data.rst.inc
63
- :end-before: DEFAULT_PLACEHOLDER
62
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
64
63
65
64
The default value is ``'' `` (the empty string).
66
65
67
- .. include :: /reference/forms/types/options/empty_data.rst.inc
68
- :start-after: DEFAULT_PLACEHOLDER
66
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
69
67
70
68
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
71
69
Original file line number Diff line number Diff line change @@ -105,13 +105,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
105
105
106
106
.. include :: /reference/forms/types/options/disabled.rst.inc
107
107
108
- .. include :: /reference/forms/types/options/empty_data.rst.inc
109
- :end-before: DEFAULT_PLACEHOLDER
108
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
110
109
111
110
The default value is ``'' `` (the empty string).
112
111
113
- .. include :: /reference/forms/types/options/empty_data.rst.inc
114
- :start-after: DEFAULT_PLACEHOLDER
112
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
115
113
116
114
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
117
115
Original file line number Diff line number Diff line change @@ -52,13 +52,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
52
52
53
53
.. include :: /reference/forms/types/options/disabled.rst.inc
54
54
55
- .. include :: /reference/forms/types/options/empty_data.rst.inc
56
- :end-before: DEFAULT_PLACEHOLDER
55
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
57
56
58
57
The default value is ``'' `` (the empty string).
59
58
60
- .. include :: /reference/forms/types/options/empty_data.rst.inc
61
- :start-after: DEFAULT_PLACEHOLDER
59
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
62
60
63
61
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
64
62
Original file line number Diff line number Diff line change @@ -37,13 +37,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
37
37
38
38
.. include :: /reference/forms/types/options/disabled.rst.inc
39
39
40
- .. include :: /reference/forms/types/options/empty_data.rst.inc
41
- :end-before: DEFAULT_PLACEHOLDER
40
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
42
41
43
42
The default value is ``'' `` (the empty string).
44
43
45
- .. include :: /reference/forms/types/options/empty_data.rst.inc
46
- :start-after: DEFAULT_PLACEHOLDER
44
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
47
45
48
46
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
49
47
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 @@ -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