set input no required symfony whtml code example
Example: required false , form type
$builder->add('name', null, [
'required' => false,
'empty_data' => 'John Doe',
]);
$builder->add('name', null, [
'required' => false,
'empty_data' => 'John Doe',
]);