Form wizard: how I can jump on a specific step?

79 views
Skip to first unread message

Karim

unread,
Feb 24, 2015, 8:15:00 PM2/24/15
to Django Users
Hi all! I'm moving a really long form on a FormWizard[1] using the class "
SessionWizardView
​" everything is fine. All works in adding and editing of the model I'm using on the modelset.

Now I have some questions to improve the "quality" of the wizard.

I added a navbar with the active class for the current step. I wold like to make the navbar clickable and let the user jump to a specific step. Because I'm using the wizard in adding end in editing and the validation is form by form (step by step), how I can make the navbar clickable?

1) In adding I can click on the previous forms
2) In editing I can click on every step

In the django doc the previous button is creating with this code:

        <button name="wizard_goto_step"
                class="btn btn-success"
                type="submit"
                value="{{ wizard.steps.prev }}">
            Previous
        </button>

Is possible to create a link for a specific step?​
​What about the check if the step was visited and validated?

Thank you​


--
Karim N. Gorjux
Reply all
Reply to author
Forward
0 new messages