Re: populating a text area field in wtforms
- From:
- alice ni
- Date:
- 2011-02-26 @ 01:34
Hi the form defintion, the view function and the html of the form can
be viewed here
http://pastebin.com/QC4MC84B
Thanks
On Sat, Feb 26, 2011 at 6:53 AM, alice ni <alice.ni19@gmail.com> wrote:
> 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...
>
> I know that it can be done in the form definition using the default
> parameter, but I need to do it in the template. It is something like
> an edit blog link.When you click the edit button against any blog, it
> should present a form with the title in the textfield(which is done
> using the value parameter) and the content of the blog in the textarea
> field.
>
>
> Thanks!
> Alice
>