File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,13 @@ delete_empty
268
268
269
269
**type **: ``Boolean `` **default **: ``false ``
270
270
271
+ .. caution ::
272
+
273
+ Delete empty will only remove items when the normalized value is null.
274
+ If your `type `_ is a compound form type, you need to have the :ref: `required <reference-form-option-required >`
275
+ option set to ``false `` inside `options `_, See :ref: `empty_data <reference-form-option-empty-data >`.
276
+
277
+
271
278
If you want to explicitly remove entirely empty collection entries from your
272
279
form you have to set this option to true. However, existing collection entries
273
280
will only be deleted if you have the allow_delete _ option enabled. Otherwise
Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ option on the form.
80
80
81
81
.. include :: /reference/forms/types/options/data_class.rst.inc
82
82
83
+ .. _reference-form-option-empty-data :
84
+
83
85
.. include :: /reference/forms/types/options/empty_data.rst.inc
84
86
:end-before: DEFAULT_PLACEHOLDER
85
87
You can’t perform that action at this time.
0 commit comments