What are some RESTful ways to transition between pages of a multi-page form in Django?
My current method:
Are redirects between form pages bad? Should forms POST to the next form page? If so, where should form validation happen?
What you're doing sounds like an implementation of the PRG model for handling multi step forms.
You probably want to POST to the current step, and then redirect to the next step only if the form validates. There is no problem with redirecting between steps; in fact, as you probably discovered, it allows you to support the browser back button in your forms.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With