Symfony Choice type with disabled options
问题 Is there any way with Symfony to render a <select> form type with disabled options, based on the truthyness of the given choices options ? I saw this thread (thanks to DonCallisto) about disabling choice expanded options ; However I do not want to have an expanded choice. I would like to keep a select element, with disabled options . $builder->add('list', 'choice', array( 'choices' => array( array( 'value' => 1, 'label' => '1', 'disabled' => false ), array( 'value' => 2, 'label' => '2',