Quantcast
Channel: Skip steps on a django FormWizard - Stack Overflow
Browsing all 5 articles
Browse latest View live

Answer by Kian for Skip steps on a django FormWizard

There are different ways for this(as mentioned in other answers), but one solution which I think could be useful is overwriting the get_form_list() method:something like:from collections import...

View Article



Answer by tijs for Skip steps on a django FormWizard

To make certain forms optional you can introduce conditionals in the list of forms you pass to the FormView in your urls.py:contact_forms = [ContactForm1, ContactForm2]urlpatterns = patterns('',...

View Article

Answer by gustavo80br for Skip steps on a django FormWizard

I did it other way, overriding the render_template method. Here my solution. I didn't know about the process_step()...def render_template(self, request, form, previous_fields, step, context): if not...

View Article

Answer by Andriy Drozdyuk for Skip steps on a django FormWizard

The hook method process_step() gives you exactly that opportunity.After the form is validated you can modify the self.form_list variable, and delete the forms you don't need.Needles to say if you logic...

View Article

Skip steps on a django FormWizard

I have an application where there is a FormWizard with 5 steps, one of them should only appear when some conditions are satisfied.The form is for a payment wizard on a on-line cart, one of the steps...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>