Closed BismeetSingh closed 5 months ago
@BismeetSingh I confirm, I'm observing similar behaviour with django-crispy-forms = "1.14.0"
and django-formtools = "2.3"
. Have you managed to solve the issue?
any updates here? I have the same issue
I solved this using formnovalidate
on these buttons to explicitly tell the browser to skip validation:
{% if wizard.steps.prev %}
<button type="submit" name="wizard_goto_step" value="{{ wizard.steps.first }}" formnovalidate>
{% translate "first step" %}
</button>
<button type="submit" name="wizard_goto_step" value="{{ wizard.steps.prev }}" formnovalidate>
{% translate "prev step" %}
</button>
{% endif %}
EDIT: I can see the documentation has been edited to add this, but not published and the fix wasn't applied to the default templates
I am using django 3.1.4 with crispy forms 1.12 and formtools 2.3 and the initial page loads but the next button doesn't do anything. However,the next button does validate the page when crispy forms are replaced with {{ form.as_p }}. It seems the library is incompatible with crispy forms. forms:
html:
views.py
urls.py