Skip to content

Commit b79094b

Browse files
committed
minor #17906 [Form] Add Form is_empty_callback option (alamirault)
This PR was merged into the 5.4 branch. Discussion ---------- [Form] Add Form is_empty_callback option Fix #13056 I don"t think we must add this option on all FormType docs Commits ------- c4a4d25 Add Form is_empty_callback option
2 parents 60bad2e + c4a4d25 commit b79094b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

reference/forms/types/form.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ The actual default value of this option depends on other field options:
6464
* If ``data_class`` is not set and ``compound`` is ``false``, then ``''``
6565
(empty string).
6666

67+
``is_empty_callback``
68+
~~~~~~~~~~~~~~~~~~~~~
69+
70+
**type**: ``callable`` **default**: ``null``
71+
72+
This callable takes form data and returns whether value is considered empty.
73+
6774
.. include:: /reference/forms/types/options/empty_data_description.rst.inc
6875

6976
.. _reference-form-option-error-bubbling:

0 commit comments

Comments
 (0)