Category: placeholder

Symfony 5 form not submitted when a list contains a placeholder

I have a form with different lists like this : $builder ->add(‘seatsNumber’, ChoiceType::class, [ ‘placeholder’ => ‘choose.number.seats.placeholder’, ‘choices’ => [ ‘1.seat.choice’ => 1, ‘2.seats.choice’ => 2, ‘3.seats.choice’ => 3, ‘4.seats.choice’ => 4, ‘5.seats.choice’ => 5, ‘6.seats.choice’ => 6, ‘7.seats.choice’ =>…