Ray Kootstra Ray Kootstra - 5 months ago
411 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'}) }}