1

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

  • user
  • password

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

2nd step 2 input

  • email
  • address (home address)

send a token to his email ...

3rd step 3 input and finish button

  • new password
  • retype password
  • token

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

Can you guys point me to the right direction ?

Thx a lot.

1

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.