First result in a google search for "django dynamic forms" gives you this; http://www.b-list.org/weblog/2008/nov/09/dynamic-forms/ Just so happens I read it today and found it useful.
You can create your form fields on the fly in the __init__, I've got a form thats completely generated from my models. Dougal --- Dougal Matthews - @d0ugal http://www.dougalmatthews.com/ 2009/4/23 Dennis Schmidt <metzelti...@googlemail.com> > > Hi there, > > I need to dynamically create complex forms in my application. Since > version 1.0 django has these form wizards, which can manage complex > forms quite well. > Now my only problem is, that they apparently have to be statically > mapped by the urls.py. But what I need is a different set of forms for > the wizard, depending of an ID specified in the URL. > > ie /order/1/accept/ shall use OrderAcceptionWizard([OrderPartOneForm, > OrderPartTwoForm]) but > /order/2/accept/ shall use OrderAcceptionWizard([OrderPartOneForm, > OrderPartThreeForm]). > > any idea if this is somehow possible? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---