elo80ka / django-dynamic-formset

A jQuery plugin that allows you dynamically add new forms to a rendered django formset.
675 stars 309 forks source link

Add new row in specific place/order? #159

Open dwasyl opened 5 years ago

dwasyl commented 5 years ago

Hi all,

Just looking for ideas here, have the script working great, although my lists involves a number of 'sub' lists where the items are indented. To manage that, something that I would like to support add links at various parts throughout my list of formset objects. Currently, the button always creates new rows at the end of the table, whereas I would like the new items to be included below whatever row had the button that was used to add the item.

Has anyone done this before or have any tips or what might work? I've tried a few different ways of making this happen without any luck.

Thanks

pije76 commented 4 years ago

Any solution for this idea?

dwasyl commented 4 years ago

I never found a great way and ended up just working around it by inserting them in specific places. Not ideal.