void
void

Reputation: 269

django forms with jquery

well ive been searching for the past 3 hours and I cant seem to find a good tutorial on this ... i`m looking for a tutorial on how to make a form "wizard" with jquery and django (I dont know javascript only basics) I need a 3 step wizard ...

first step 2 inputs

if user and password are in db then show 2nd step

2nd step 2 input

send a token to his email ...

3rd step 3 input and finish button

check if the token is valid if it is submit ...

Can you guys point me to the right direction ?

Thx a lot.

Upvotes: 1

Views: 1647

Answers (1)

Liam
Liam

Reputation: 2167

If you're using Javascript then the "step" process will be faked, basically hiding/showing/validating fields when a user clicks a button, but it will all be in one view. Take a look at the answers to this question for help on building that. This looks like a pretty good tutorial on the topic as well. You won't be changing anything on the backend, and you can use a single Django form to display all the inputs individually. Check the Django docs on using forms in templates for more information on that.

If you want a "step" process using Django without using Javascript, you can use the Django form wizard.

Upvotes: 1

Related Questions