File tree 1 file changed +8
-3
lines changed
reference/forms/types/options
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,14 @@ empty_value
3
3
4
4
**type**: ``string`` or ``Boolean``
5
5
6
+ .. versionadded:: 2.3
7
+
8
+ Since Symfony 2.3, empty values are also supported if the ``expanded``
9
+ option is set to true.
10
+
6
11
This option determines whether or not a special "empty" option (e.g. "Choose an option")
7
- will appear at the top of a select widget. This option only applies if both
8
- the ``expanded`` and `` multiple`` options are set to false.
12
+ will appear at the top of a select widget. This option only applies if the
13
+ the ``multiple`` option is set to false.
9
14
10
15
* Add an empty value with "Choose an option" as the text::
11
16
@@ -26,4 +31,4 @@ is false::
26
31
// a blank (with no text) option will be added
27
32
$builder->add('states', 'choice', array(
28
33
'required' => false,
29
- ));
34
+ ));
You can’t perform that action at this time.
0 commit comments