Dynamically add additional forms for a formset using HTMX and a little bit of hyperscript
Supports deleting and adding rows.
I'm using django-template-partials, django-htmx, htmx and hyperscript
I decorate my views with the @htmx_dynamic_handler
decorator. This decorator allows you to specify the action that triggers the HTMX request and the function that renders the partial.
@htmx_dynamic_handler("action", _function_that_renders_a_partial)