Hi I have been trying to pepopulate a textareafield using something
like this in the template.
{{form.content(value="please type content")}}
This works when the field is textfield primarily because the html
accepts value for <input type="text">
but the same does not work for textarea…
Can someone please help me with this?
For
textareawidgets, you set the default content with thedefaultargument in your field constructors.Then when you render:
WTForms will render the default text. I have not been able to find a way to specify default text for the text area at render time.