Saturday, November 26, 2011

Form wizard and dynamic choices

I've been trying to implement a relatively simple django app, in which
I need to have a multistep form and a dynamically generated choice
field. I'm using Django 1.3 and the Form Wizard.

In step one of the form, I ask for a URL from the user, which I'd like
to use to dynamically generate the list of choices for a select field
on the subsequent form. I've distilled the problem down to this: I
can't figure how to get the result of a field from the first step of
the form and pass an extra keyword argument to the form as it is
getting constructed, so that I can generate the choices and render the
form.

Anyone have any insight?

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment