How do I generate dynamic fields in WTForms
I am trying to generate a form in WTForms that has dynamic fields according to this documentation http://wtforms.simplecodes.com/docs/1.0.2/specific_problems.html#dynamic-form-composition I have this subform class which allows users to pick items to purchase from a list: class Item(Form): itmid = SelectField('Item ID') qty = IntegerField('Quantity') class F(Form): pass There will be more than one category of shopping items, so I would like to generate a dynamic select field based on what categories the user will choose: fld = FieldList(FormField(Item)) fld.append_entry() but I get the