jazzband / django-formtools

A set of high-level abstractions for Django forms
https://django-formtools.readthedocs.io
BSD 3-Clause "New" or "Revised" License
814 stars 136 forks source link

Cannot move to "first step" or "prev step" in example without filling in fields #167

Closed ShaheedHaque closed 4 years ago

ShaheedHaque commented 4 years ago

I have coded up the example from the docs (plus or minus) and notice that when I am on the second screen, I cannot move to "first step" or "prev step" in example without filling in fields:

image

Now, I'm a bit hazy on front end stuff, but I presume this is because the fields are required and the button is an input with type="submit". The obvious solution is to not use a submit but then I presume I will run into the issue that all moves between steps presently require a POST. Is that a correct understanding?

ShaheedHaque commented 4 years ago

To put it another way, any GET repositons to the first step. I see that #99 and its associated PR #101 attempt to address this. Is my understanding correct?

ShaheedHaque commented 4 years ago

OK, I found formnovalidate. It might be useful to add this to the example "first step" and "prev step" buttons...