# How to reset form and send again?

**URL:** <https://forum.getkirby.com/t/how-to-reset-form-and-send-again/8587>\
**Category:** Questions\
**Tags:** v2\
**Created:** [September 22, 2017, 8:33am UTC](https://forum.getkirby.com/t/how-to-reset-form-and-send-again/8587 "2017-09-22T08:33:31Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mzur](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@mzur](https://forum.getkirby.com/u/mzur)\
**Post date:** [September 25, 2017, 3:50pm UTC](https://forum.getkirby.com/t/how-to-reset-form-and-send-again/8587/6 "2017-09-25T15:50:00Z")

</div>

Okay, two issues:

1. When you call `reset()` on the form element, the CSRF token (the value of the `csrf_token` field) is probably cleared, too. But this token is required, else the POST request will be rejected (i.e. `302` redirected with an error message).

2. Even if the token is not reset (any more) it will get invalid after the first request. IIRC in Kirby 2.4.1 a CSRF token is only valid for a single request. This was changed in 2.5.2 where the token is valid for an entire session. The easiest fix would be to update to the newest Kirby version. Is that possible?

---

_[View the full topic](https://forum.getkirby.com/t/how-to-reset-form-and-send-again/8587)._
