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.
88
99The true default value of this option depends on the field options:
1010
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``.
1515
1616But you can customize this to your needs. For example, if you want the ``gender`` field to be
1717explicitly 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