I want to use a python list as the options for a check box selection form. So you can select the items in the list that you want and submit the form to use those values.
Which form field do I use in my form?
What would my html file look like?
I think the .html page should look like this.
<form>
{% for item in list %}
<input type="checkbox" name="modList" value={{item}}>{{item}}<br>
{% endfor %}
</form>
But I can't figure out what to make the form field in forms.py.
http://packages.python.org/Flask-WTF/
There is no Checkbox form on that page.
I can use
{{form.modList(formdata = list)}}
But it just displays an emtpy checkbox with no text