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
268268
269269**type **: ``Boolean `` **default **: ``false ``
270270
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+
271278If you want to explicitly remove entirely empty collection entries from your
272279form you have to set this option to true. However, existing collection entries
273280will 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.
8080
8181.. include :: /reference/forms/types/options/data_class.rst.inc
8282
83+ .. _reference-form-option-empty-data :
84+
8385.. include :: /reference/forms/types/options/empty_data.rst.inc
8486 :end-before: DEFAULT_PLACEHOLDER
8587
You can’t perform that action at this time.
0 commit comments