Skip to content

Commit 70feefd

Browse files
nykopolweaverryan
authored andcommitted
document overriden options of checkbox
1 parent c62cd13 commit 70feefd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

reference/forms/types/options/checkbox_compound.rst.inc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ compound
33

44
**type**: ``boolean`` **default**: ``false``
55

6-
Specify that checkbox type is not a combined type.
6+
This option specifies if a form is compound. As it's not the
7+
case for checkbox, by fefault the value is overriden with
8+
``false`` value.
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
empty_data
22
~~~~~~~~~~
33

4-
**type**: ``closure``
4+
**type**: ``string`` **default**: ``mixed``
55

6+
This option determines what value the field will return when the ``empty_value``
7+
choice is selected.
8+
In checkbox, the value of ``empty_data`` is overriden by the value returned by
9+
the data transformer (see :doc:`/cookbook/form/data_transformers.rst`).
610

0 commit comments

Comments
 (0)