I use WTForms with Flask via the Flask.WTF extension. This question isn’t Flask-specific, though.
WTForms includes a FieldList field for lists of fields. I’d like to use this to make a form where users can add or remove items. This will require some sort of Ajax framework to dynamically add widgets, but the WTForms documentation makes no mention of it.
Other frameworks like Deform come with Ajax support. Is there a similar framework available for WTForms?
I used something like this with my FieldList/FormField to allow adding more entries:
Remove buttons would be much trickier.
(Code mostly borrowed from answer to Dynamically adding a form to a Django formset with Ajax.)