File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ user sees on the form (e.g. ``Male``).
5151.. code-block :: php
5252
5353 $builder->add('gender', 'choice', array(
54- 'choices' => array('m' => 'Male', 'f' => 'Female'),
55- 'required' => false,
54+ 'choices' => array('m' => 'Male', 'f' => 'Female'),
55+ 'required' => false,
5656 ));
5757
5858 By setting ``multiple `` to true, you can allow the user to choose multiple
@@ -62,12 +62,12 @@ of checkboxes depending on the ``expanded`` option:
6262.. code-block :: php
6363
6464 $builder->add('availability', 'choice', array(
65- 'choices' => array(
65+ 'choices' => array(
6666 'morning' => 'Morning',
6767 'afternoon' => 'Afternoon',
6868 'evening' => 'Evening',
6969 ),
70- 'multiple' => true,
70+ 'multiple' => true,
7171 ));
7272
7373 You can also use the ``choice_list `` option, which takes an object that can
@@ -90,7 +90,7 @@ by this field. The ``choices`` option is an array, where the array key
9090is the item value and the array value is the item's label::
9191
9292 $builder->add('gender', 'choice', array(
93- 'choices' => array('m' => 'Male', 'f' => 'Female')
93+ 'choices' => array('m' => 'Male', 'f' => 'Female'),
9494 ));
9595
9696.. tip ::
You can’t perform that action at this time.
0 commit comments