Re: dynamically adding form fields

2012-04-03 Thread Andre Terra
Hi Matt, Search the docs for inlines, inline formsets and inline formset factories, and you'll find exactly what you need [0]. Read them carefully cause it's easy to make mistakes and debugging inlines has always been frustrating for me. Good luck and happy coding. Cheers, AT [0] https://docs.

dynamically adding form fields

2012-04-03 Thread Matt Warren
I'm working on a complex form and not sure if there is an elegant way to handle it in django. The form creates an invoice and it uses jQuery to dynamically add/remove extra form fields into the HTML for line items. Each line item contains several fields including description, unit price, quant