The parameter in question is a primary key that is used to generate a series of fields within the form. It is passed to the form __init__ routine, and can vary from one form to another. So, given a formset, I want to tell the formset "This is the parameter you should use when creating the next form you create."
SixDegrees wrote: > > I'm using formsets to implement a dynamic form as described > http://www.mancoosi.org/~abate/dynamic-forms-with-django here . However, > the forms created by the formset want a parameter passed that determines > the contents of the form during initialization. This parameter can be > passed back through another form on the same page using Javascript, but I > can't figure out how to tell the formset to create the next form using > this parameter. How is this done? > > As an alternative, I can create a new form manually. But there doesn't > seem to be a way to add it to the formset. > > I would much prefer to stay away from JavaScript and other client-side > approaches, other than passing the single parameter used for > initialization. > -- View this message in context: http://old.nabble.com/Dynamic-Forms-with-Varying-init-Arguments-tp32296362p32297251.html Sent from the django-users mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

