Disabling some checkboxes of choice widget in buildForm()
I have a form widget of type "choice" which is being displayed as a list of many checkboxes. Everything works great. So to stress it out: there is ONE widget, with MANY checkboxes (and NOT several checkbox widgets). Now, I want to disable some of those checkboxes. The data for that is avaliable in the $options-Array. Here is the buildForm()-function of my FooType.php ... public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('foo', 'choice', array('choices' => $options['choiceArray']['id'], 'multiple' => true, 'expanded' => true, 'disabled' => $options[