More details on the form and why there is a field that depends on 6 pages:
In steps 2-5, I am prompting the user for questions and choices about a particular service. On page 6 they are given the opportunity to select a date/time for the service. The validation will calculate how how much time is required based on steps 2-5 and see if the time they pick fits in the calendar. If it doesn't, it will ask them to pick a different time. I'm still not sure where I can use it, because I can't call get_cleaned_data_for_step from the forms validation/clean field, and I'm not sure where else I can access the required form steps and also be able to raise a validation error. ----- Original Message ----- From: "Babatunde Akinyanmi" <tundeba...@gmail.com> To: "Kristofer" <kristo...@cybernetik.net>, django-users@googlegroups.com Sent: Friday, January 11, 2013 8:05:59 AM Subject: RE: Form validation Hi, You can use the wizard's get_cleaned_data_for_step(step) method where step is 0-indexed so step 2 form data would be: get_cleaned_data_for_step('1'). It would return a dictionary of the cleaned data for that step. Ignorable comment: I would be very pissed if I had to fill 6 form pages only to be told I can't continue because of something I did 4 pages ago. Sent from my Windows Phone From: Kristofer Sent: 1/11/2013 8:00 AM To: django-users@googlegroups.com Subject: Form validation Hello, I am using FormWizard with a 12-step form. On step 6, I want to perform verification on a field but it depends on fields that were entered in steps 2-5. I cannot figure out how to get data from the previous steps in the form validation for step 6. Where is a point in the FormWizard where I can access previous form data and can also raise ValidationError on a field? Thanks, -- 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 . -- 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.