How define textarea content on form edit (Symfony2/TWIG)
forms, symfony, textarea, twig
Solution
This should work according to the doc.
{{ form_widget(edit_form.description, { 'value': 'content'}) }} {{ form_errors(edit_form.description) }}
But I've never tested it.
Problem
I want to display a specific content in my editForm textarea so I try like text field but it doesn't work : ``` {{ form_widget(edit_form.description, { 'attr': {'value': 'content'} }) }} {{ form_errors(edit_form.description) }} ``` How can I do it in TWIG ?