@@ -19,6 +19,7 @@ forms, which is useful when creating forms that expose one-to-many relationships
19
19
| | - `allow_delete `_|
20
20
| | - `prototype `_|
21
21
| | - `prototype_name `_|
22
+ | | - `delete_empty `_|
22
23
+-------------+-----------------------------------------------------------------------------+
23
24
| Inherited| - `label `_|
24
25
| | - `label_attr `_|
@@ -335,6 +336,16 @@ If you have several collections in your form, or worse, nested collections
335
336
you may want to change the placeholder so that unrelated placeholders are not
336
337
replaced with the same value.
337
338
339
+ delete_empty
340
+ ~~~~~~~~~~~~
341
+
342
+ **type **: ``Boolean `` **default **: ``false ``
343
+
344
+ If you want to explicitly remove entirely empty collection entries from your
345
+ form you have to set this option to true. However, existing collection entries
346
+ will only be deleted if you have theallow_delete _ option enabled. Otherwise
347
+ the empty values will be kept.
348
+
338
349
Inherited options
339
350
-----------------
340
351