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 @@ -212,17 +212,15 @@ compound
212
212
This option specifies if a form is compound. The value is by default
213
213
overridden by the value of the ``expanded `` option.
214
214
215
- .. include :: /reference/forms/types/options/empty_data.rst.inc
216
- :end-before: DEFAULT_PLACEHOLDER
215
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
217
216
218
217
The actual default value of this option depends on other field options:
219
218
220
219
* If ``multiple `` is ``false `` and ``expanded `` is ``false ``, then ``'' ``
221
220
(empty string);
222
221
* Otherwise ``[] `` (empty array).
223
222
224
- .. include :: /reference/forms/types/options/empty_data.rst.inc
225
- :start-after: DEFAULT_PLACEHOLDER
223
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
226
224
227
225
error_bubbling
228
226
~~~~~~~~~~~~~~
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 @@ -56,13 +56,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
56
56
57
57
.. include :: /reference/forms/types/options/disabled.rst.inc
58
58
59
- .. include :: /reference/forms/types/options/empty_data.rst.inc
60
- :end-before: DEFAULT_PLACEHOLDER
59
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
61
60
62
61
The default value is ``'' `` (the 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
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
68
66
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 @@ -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 @@ -110,17 +110,15 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
110
110
111
111
.. include :: /reference/forms/types/options/disabled.rst.inc
112
112
113
- .. include :: /reference/forms/types/options/empty_data.rst.inc
114
- :end-before: DEFAULT_PLACEHOLDER
113
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
115
114
116
115
The actual default value of this option depends on other field options:
117
116
118
117
* If ``multiple `` is ``false `` and ``expanded `` is ``false ``, then ``'' ``
119
118
(empty string);
120
119
* Otherwise ``[] `` (empty array).
121
120
122
- .. include :: /reference/forms/types/options/empty_data.rst.inc
123
- :start-after: DEFAULT_PLACEHOLDER
121
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
124
122
125
123
.. include :: /reference/forms/types/options/help.rst.inc
126
124
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 @@ -107,13 +107,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
107
107
108
108
.. include :: /reference/forms/types/options/disabled.rst.inc
109
109
110
- .. include :: /reference/forms/types/options/empty_data.rst.inc
111
- :end-before: DEFAULT_PLACEHOLDER
110
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
112
111
113
112
The default value is ``'' `` (the empty string).
114
113
115
- .. include :: /reference/forms/types/options/empty_data.rst.inc
116
- :start-after: DEFAULT_PLACEHOLDER
114
+ .. include :: /reference/forms/types/options/empty_data_description.rst.inc
117
115
118
116
.. include :: /reference/forms/types/options/error_bubbling.rst.inc
119
117
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 @@ -97,13 +97,11 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
97
97
98
98
.. include :: /reference/forms/types/options/disabled.rst.inc
99
99
100
- .. include :: /reference/forms/types/options/empty_data.rst.inc
101
- :end-before: DEFAULT_PLACEHOLDER
100
+ .. include :: /reference/forms/types/options/empty_data_declaration.rst.inc
102
101
103
102
The default value is ``'' `` (the empty string).
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/error_bubbling.rst.inc
109
107
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