FormWizard accessing previous fields data

2009-01-29 Thread lbologn...@gmail.com
Hi all, say i have a FormWizard of 5 steps and at the last step i want to display a summary of the submitted data how do i access the value of a field that was in the form at step 1? example: class Step1(Form): foo = CharField() bar = CharField() So at step 5 i'd like to display the value

Re: FormWizard accessing previous fields data

2009-01-31 Thread lbologn...@gmail.com
On Jan 29, 11:31 pm, "lbologn...@gmail.com" wrote: > Hi all, > > say i have aFormWizardof 5 steps and at the last step i want to > display a summary of the submitted data how do i access the value of a > field that was in the form at step 1? Maybe i didn't e

Re: FormWizard accessing previous fields data

2009-02-02 Thread lbologn...@gmail.com
On Feb 1, 2:38 am, "mattimust...@gmail.com" wrote: > I never understood the logic of it either. I also expected to be able > to do  something like {{previous_fields.firstname }}. Found it! class EnrollWizard(FormWizard): def get_template(self, step): return 'enroll_wizard_%s.html'

Re: FormWizard accessing previous fields data

2009-02-02 Thread lbologn...@gmail.com
On Feb 3, 12:17 am, Johan Liseborn wrote: > Thus, you could do something like (no changes to get_template): > > class EnrollWizard(FormWizard): >     def process_step(self, request, form, step): >        if step == 0: >           self.extra_context['foo'] = form.cleaned_data['foo'] >        elif

Customize CheckboxSelectMultiple

2009-04-09 Thread lbologn...@gmail.com
Hi all, in my form i have a CheckboxSelectMultiple field and would like to display a different image next to each checkbox. How would i do that? Thanks, Lorenzo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan