Has anyone tried to make a FormWizard form (multiple stage form) work
across a whole site as a context process? I'm looking at attempting
this - have done a context process & a formwizard form, but never
tried to 'cross the streams' like this before.

In particular, I'll be taking code from forms.py like this:

class ComparisonForm1(forms.Form):
        type_of_cover = forms.ChoiceField(choices=TYPE_CHOICES)
        smoker = forms.ChoiceField(choices=SMOKE_CHOICES)
        title = forms.ChoiceField(choices=TITLE_CHOICES)
        first_name = forms.CharField(max_length=100)
        surname = forms.CharField(max_length=100)
        contact_telephone = forms.IntegerField()
        alternative_telephone = forms.IntegerField(required=False)
        email_address = forms.EmailField()
        address_line_one = forms.CharField(max_length=100)
        postcode = forms.CharField(max_length=100)


#Second Form
"""
class ComparisonForm1(forms.Form):
        message = forms.CharField(widget=forms.Textarea)
"""
#Form Wizard to glue the above forms together. See:
http://docs.djangoproject.com/en/1.0/ref/contrib/formtools/form-wizard/
from django.http import HttpResponseRedirect
from django.contrib.formtools.wizard import FormWizard

class CompareWizard(FormWizard):
        def done(self, request, form_list):
#               do_something_with_the_form_data(form_list)
                return HttpResponseRedirect('/compare/thanks/')

And migrating to a context pulling an html snippet across the site.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to