Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Form Logic (Errors / Success) doesn't work within nocache tags

Open
#12,083 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
laravel, php
Domain
backend

Research direction

Start by reproducing the reported behavior in the linked fresh Statamic installation: submit a form wrapped in nocache with STATAMIC_STATIC_CACHING_STRATEGY=none, then with full. Read the form template copied from the docs and investigate how nocache interacts with full static caching; done means the success message appears after submission with full caching enabled.

Written by the indexing model from the issue text.

Description

forms nocache
Bug description

Hi,

I am having issues getting forms to work, when using STATAMIC_STATIC_CACHING_STRATEGY=full
Here is a repo showing the issue in a fresh statamic installation: https://github.com/lauritsen/statamic-forms-test
Not sure if I am missing something.
Copied the form template from the docs and wrapped it with nocache.

Seems similar #7628

How to reproduce
  1. Create new statamic application
  2. Create a form in the control panel
  3. Add the form to a page and wrap it with nocache
  4. Test the form with STATAMIC_STATIC_CACHING_STRATEGY=none
    • It shows the success message
  5. Test the form with with STATAMIC_STATIC_CACHING_STRATEGY=full
    • It doesn't show the success message
Logs

Environment
Environment
Application Name: Statamic
Laravel Version: 12.25.0
PHP Version: 8.4.11
Composer Version: 2.8.10
Environment: local
Debug Mode: ENABLED
URL: statamic-forms-test.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Storage
C:\Users\hela\repos\statamic-forms-test\public\storage: NOT LINKED

Statamic
Addons: 0
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: full
Version: 5.63.0 Solo
Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Dominant language
PHP
Stars
4.9k
Forks
647
Avg merge
1d 9h
Merged PRs (30d)
102

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from statamic/cms

All issues in statamic/cms

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.