Search code examples
djangodjango-formsdjango-formwizard

Django From wizard get form data from previous step


I want to create a checkout or submit form as the last step of a form wizard. It should display all data from previous steps and add a Captcha or 'Terms of service' checkbox.

I know how to modify the context for each step, but I can't find a way how to access from data.


Solution

  • Never mind, I got the solution from the code base.

    You need to call WizardView.get_cleaned_data_for_step(step)