Questions tagged [django-formwizard]

A Django application that splits forms across multiple Web pages.

Django comes with an optional “form wizard” application that splits forms across multiple Web pages. It maintains state in one of the backends so that the full server-side processing can be delayed until the submission of the final form.

You might want to use this if you have a lengthy form that would be too unwieldy for display on a single page. The first page might ask the user for core information, the second page might ask for less important information, etc.

Source: Django formwizard documentation

django-formtools is no longer an official part of django but still available as a standalone party app.

275 questions
30
votes
7 answers

overriding default templates of django-allauth

I used this social registration/signup library django allauth for a project of mine. How do i customize the default templates and forms to give a better look and feel?
13
votes
4 answers

How to pass previous form data to the constructor of a DynamicForm in FormWizard

I have a FormWizard where I need data from the first form to pass to the constructor of the second form so I can build a dynamic form. I can get the first form's data via the process_step of the FormWizard. I create the fields of the second form…
BozoJoe
  • 6,117
  • 4
  • 44
  • 66
9
votes
1 answer

Conditional Form Field in Django wizard form

I am using wizard forms in django. I want to create a form field only if answer to some other form field is marked "yes" otherwise I don't want this new form field. How can I do this ? I have tried some other answers related to this but most of them…
Kanish Anand
  • 172
  • 1
  • 10
8
votes
5 answers

Implementing a secure two-factor authentication for a login page with Django form wizard

So basically i want to achieve something similar to Google Two-factor authentication implementation. My login form consists of a 2-step form wizard: Step 1 (verifying username and password) Step 2 (authenticate security token) The usage scenarios…
Edwin
  • 803
  • 1
  • 11
  • 19
7
votes
1 answer

Go to specific step in form wizard

Is it possible to add a button on a FormWizard form which can direct the user to a specific step in the wizard? I can obviously get them to go back or start again but I'd like to be able to offer the chance to go to a specific step and change their…
bodger
  • 1,112
  • 6
  • 24
7
votes
2 answers

SessionWizardView state only saved on final form, done() not executed

I have several forms I have added to a wizard, but form state is only maintained for the final step, and done() is not executed. I have created the following, heavily based off the examples on django's documentation, to try get to the bottom of…
wilbbe01
  • 1,931
  • 1
  • 24
  • 38
7
votes
2 answers

Django: Dynamically set Formset for step in Form Wizard

As part of a Form Wizard in my Django view I am using a Formset. The wizard's forms for each step are declared like this: UserFormSet = modelformset_factory(account_models.MyUser, form=account_forms.MyUserForm, …
mzu
  • 759
  • 8
  • 20
7
votes
2 answers

Django FormWizard how to change the form_list dynamically

I'm able to dynamically call one form related to the data I chose from the step ealier. But when I'm in the done method I can see the my form_list is remaining unchanged. here is what I did : def get_form_list(request, form_list=None): if…
user1593705
7
votes
1 answer

django wizard, using form and formset in the same step

I have a scenario which I'm trying to plan to start coding and I'm thinking to use django wizard. My plan is to build a django wizard with two steps, the first simple but the second a bit more complicated. The second step will contain a form that…
Mo J. Mughrabi
  • 6,747
  • 16
  • 85
  • 143
7
votes
0 answers

When using inline formsets with form wizards, where does formset form validation go?

I am creating an example to learn more about using inline formsets with SessionWizard. Eventually, I want to integrate dynamic formsets in order to add and delete individual forms via the template before submitting. However, when data is absent from…
6
votes
2 answers

Django form wizard: Delete temporary files stored by intermediate steps

I am using django(1.4) formwizard for my application. In step 1 I am uploading 2 files. These files are used in second step. Everything is working fine but this ---> "When I complete all steps OR I stop after step 1 I still have temporary files…
Aryaveer
  • 943
  • 1
  • 12
  • 27
6
votes
4 answers

Add custom html to choicefield label in django

I am struggling with a requirement now, I want to add an image to choice field label and I really dont have a clue how to do it. I am using django form wizard to render the form. Here is the image which shows what I want to achieve : And here is…
Maverick
  • 2,738
  • 24
  • 91
  • 157
6
votes
1 answer

How can I show a preview of all data entered as a final django form wizard step?

I'm using a form wizard in django 1.4 to conditionally add instances of up to seven models. Regardless of which steps a user completes, I'd like the last step to show a preview of all the data they entered. It doesn't have to be a form since the…
Kevin
  • 113
  • 1
  • 7
5
votes
1 answer

Empty ModelFormset in Django's FormWizard

I'm using Django's FormWizard. It works fine but I'm having trouble getting any empty model formset to display correctly. I have a model called Domain. I'm creating a ModelFormset like this: DomainFormset = modelformset_factory(Domain) I pass this…
Mridang Agarwalla
  • 43,201
  • 71
  • 221
  • 382
5
votes
2 answers

Django - form wizard step by step

I'm wondering if someone uses django wizard step by step but with back option? I have form with 5 steps and now it is 'one way form' but I would like to develop it by back option (of course data between steps should be remember). Any idea?
lukasz
  • 153
  • 1
  • 1
  • 6
1
2 3
18 19