File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
reference/forms/types/options Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ choice is selected.
8
8
9
9
The true default value of this option depends on the field options:
10
10
11
- * If ``required `` is ``true`` and ``data_class `` is set , then ``new $data_class() ``;
12
- * If ``required `` is ``true`` and no ``data_class `` is set , then ``array ()``;
13
- * If ``required `` is ``false`` , then ``null``.
14
-
11
+ * If ``data_class `` is set and ``required `` is ``true`` , then ``null ``;
12
+ * If ``data_class `` is set and ``required `` is ``false`` , then ``new $data_class ()``;
13
+ * If ``data_class `` is not set and ``compound`` is ``true`` , then ``array()``;
14
+ * If ``data_class`` is not set and ``compound`` is ``false``, then ``null``.
15
15
16
16
But you can customize this to your needs. For example, if you want the ``gender`` field to be
17
17
explicitly set to ``null`` when no value is selected, you can do it like this:
You can’t perform that action at this time.
0 commit comments