I have a form that is quite long, and I want my user to be able to save it in the session, do something else and go back to it later.
I was thinking of a button somewhere in the middle that activates the save-to-session action and leads another form to create a necessary object.
<a href="{% url 'tag:create_new_tag'%}">
<button class="btn btn-primary" value="">
Add New Tag
</button>
</a>
The problem is that if i insert my button without any type (like in the code above), the form is submitted and my object saved to database, though I just want it to be saved in session.
on the other hand, if i add a type=button
attribute, the HTTP request will just be a GET, so I can't retrieve the fields that were complete so far.
how then is the best way to do that ?