ToscaWidgets headache
I just spent 2 hours to find a way to set the value of a tw HiddenField. Unfortunately the author did not think, it would be a good thing to mention such nonrelevant tasks in the documentation.
To save you searching for yourself:
options = {'form_name' : {'attrs' : {'value':'your_value'}}}
Later in the template to show your form:
${tmpl_context.form(child_args=options)}
November 1st, 2009 at 18:20
Thanks a lot! It saved me a lot of time! Very worthy post.