I am trying to separate the choices. When kind is "file" I need all choices of type with default the registered option. When kind is "package" then I need registered to hide and simple to be the default option
` ->add('type', ChoiceType::class,[
'required' => true,
'multiple' => false,
'expanded' => false,
'choices' => [
'registered RE'=>'RE',
'simple'=>'SP',
'value'=>'VL',
'reciept'=>'RC',
'pay on delievery'=>'PD',
],
])
->add('kind', ChoiceType::class, [
'required' => true,
'multiple' => false,
'expanded' => false,
'choices' => [
'file'=>'file',
'package'=>'package',
],
] )`