I'm trying to figure how to auto submit a form once the user is out of the page. Is there a way?
Code:
<form class="carform" method="get">
<input type="hidden" name="number_plate" value="{{ car.number_plate }}">
</form>
So when a user clicks a back button or type in another url, the form will automatically submit the form, so it can send the value inside the form and other views can catch the get method.
EDIT: When the user changes the url or clicks the back button on the browser