Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you have an example of inserting a new step after the first form is submitted? #7

Closed
stodge opened this issue May 26, 2011 · 5 comments
Labels

Comments

@stodge
Copy link

stodge commented May 26, 2011

Do you have an example of inserting a new step after the first form is submitted? I can't seem to work it out. Thanks

@stodge
Copy link
Author

stodge commented May 26, 2011

To clarify, I do:

(r'^block/create/(?P<slug>[A-Za-z0-9_-]+)$', NewWizard([Step('create-block', CreateBlockForm)])),

Which generates and displays the first form just fine. But I don't know what URL to submit to because I want to insert a new form based on the results of the first form's POST.

Thanks

@stodge
Copy link
Author

stodge commented May 27, 2011

Ok so I made some progress but I hit a problem.

I select an option from the first form (step 1)
I insert a second step (form A) dynamically, this form (form A) is displayed ok
I click the back button
I select another option from the first form (step 1 again), but form A is inserted and displayed again

Any ideas how to get around this? Thanks

@supercodepoet
Copy link
Owner

At the point that you add the step you need to make sure the step is not already been added to support the back button.

@supercodepoet
Copy link
Owner

I will work up and example.

@stodge
Copy link
Author

stodge commented May 27, 2011

Of course - that makes perfect sense now you mention it. Thanks!

@stodge stodge closed this as completed May 27, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants