You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would work for urls like https://[...]formtools-url?reset
Unfortunately this doesn't work for named wizards since the step_url is not None. Setting it to None typically does not work with the url parameters https://[...]formtools-url/<step>/
I think adding the following code could solve this.
It makes it possible to start/continue the wizard, and reset parameter is working ONLY if the step is not defined.
What makes sense, calling "reset" on a specific step should reset only this step, not the whole wizard! 😅
But I agree (because I did it), that handling a specific step_name (similar to the ‘done‘ one) to reset would be handy!
From the source code I understand that it is possible to reset formtools via
See:
django-formtools/formtools/wizard/views.py
Line 652 in dd0f278
This would work for urls like
https://[...]formtools-url?reset
Unfortunately this doesn't work for named wizards since the step_url is not None. Setting it to None typically does not work with the url parameters
https://[...]formtools-url/<step>/
I think adding the following code could solve this.
After which urls like
https://[...]formtools-url/reset/
could reset the form.The text was updated successfully, but these errors were encountered: