Is there an easy way to set a default value for text form field?
you can set the default value with empty_data
empty_data
$builder->add('myField', 'number', ['empty_data' => 'Default value'])
1.4m articles
1.4m replys
5 comments
56.9k users