I'm using django's form-wizard to create a multi-step form. In the last step, the user can upload (up to) 10 images. Now, I'm not very front-end savvy, so my js/jquery skills are not really that great. Anyway, here's what I have https://dpaste.de/jpbp
I can see the "add another" and "remove" buttons, they work as well (they do create new image upload fields), the problem is, they are copies of the original field.
So instead of name="1-0-id" id="id_1-0-id" etc. getting updated(++'ed), they end up being a copy of the first (even if I create 5 fields, they all have the same name/id, thus POST-ing only 1 image.)
I'm using django's form-wizard to create a multi-step form. In the last step, the user can upload (up to) 10 images. Now, I'm not very front-end savvy, so my js/jquery skills are not really that great. Anyway, here's what I have https://dpaste.de/jpbp
I can see the "add another" and "remove" buttons, they work as well (they do create new image upload fields), the problem is, they are copies of the original field.
So instead of name="1-0-id" id="id_1-0-id" etc. getting updated(++'ed), they end up being a copy of the first (even if I create 5 fields, they all have the same name/id, thus POST-ing only 1 image.)