New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Form token is not updating

Grant Smith May 1, 2021 by Grant Smith


My site appears to have a caching issue that is related to the above post.

Duncan helped me realise that my form token is not updating. It's permanently stuck on the same number, and hence the form does not work.

The problem looks to be related to cache, but I can't work out what is going wrong. Here is what I have done.


and I have excluded the contact page

'exclude' => [

To see if it will work, I tried changing the caching null and then I did a php artisan cache:clear and php please stache:refresh. Opening the site page in a private broswer I checked the token value, it's still on 9OSBhVHcjgV1iuBCoTvVd5r7edaLYh16UnUQlSsc as it has been all along?

Could I get some advise on resolving this please. Below is my form code in case it helps…

{{ form:create in="contact_form" redirect="/thank-you" }}

          {{ if errors }}
          <div class="alert alert-warning">
            <p>Oops, here's what went wrong:</p>
            {{ errors }}
              {{ value }}<br>
            {{ /errors }}
          {{ /if }}

        <div class="form flow__sm">
          <div class="horizontal-field">
            <div class="field">
              <label for="name">Your Name<span class="require"> *</span></label>
              <input type="text" id="name" name="name" placeholder="Forename Surname">
            <div class="field">
              <label for="email">Your Email<span class="require"> *</span></label>
              <input type="email" id="email" name="email" placeholder="[email protected]">
          <div class="field">
            <label for="subject">Subject<span class="require"> *</span></label>
            <input type="text" id="subject" name="subject" placeholder="I'd like to book the hall…">
          <div class="field">
            <label for="message">Your Message<span class="require"> *</span></label>
            <textarea id="message" name="message" placeholder="Please type your message here"></textarea>

          <input type="text" name="easteregg" class="special" />

          <button type="submit" class="primary fw-mobile">Send Enquiry</button>

        {{ /form:create }}
>>>>>>> Unanswered <<<<<<<
2 Replies
1 Follower