Ray Kootstra Ray Kootstra - 1 month ago
225 0

Code to set a default value for an input field within Twig.

Twig

Twig set default value for input

{{ form_widget(form.title, {'value' : 'Default title'}) }}