I have figured out how to use the admin style "Add Another" button (which adds a new record of the foreign key and pops it into your current form's select box). Here's that question/answer. I am wondering if this is possible with an inline formset where the user can dynamically add additional formsets.
For example, I have an estimate app where the user can select item
s from a drop down menu. They can add a new inline formset instance and select another item
. If they cannot find the item
, I want them to be able to add a new item
record by clicking the same little +
symbol I used (and therefore all the same JS code) for all my other forms.
Any thoughts?