Answer the question
In order to leave comments, you need to log in
Sumfomy form builder how to change label for?
I create a form through FormBuilder,
there is a checkbox, man / woman (woman), the form builder symphony creates its own label for the input, are there options to change it ???
<label for="registration_form_gender" class="required">Gender</label>
<label for="ТУТ Я ХОЧУ СВОЙ FOR!!!!!!!!!!" class="required">Gender</label>
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('firstname', Text::class)
->add('lastname', Text::class)
->add('email', EmailType::class)
->add('birthday', Date::class)
->add('gender', CheckboxType::class, [
'label' => ['for' => 'ТУТ Я ХОЧУ СВОЙ FOR!!!!!!!!!!'],
'required' => false,])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question