getgrav / getgrav/grav-plugin-form

Grav modular page success message never resets

Open
#375 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
64
Forks
80
Avg merge
10h 13m
Merged PRs (30d)
9

Description

```yaml
---
...
form:
name: contact-form
action: /home
...
process:
- reset: true
- message: "Thank you!"
...
---
```

@rhukster This shows a success message once submit button is clicked. The success message stays on the page even if the cache is reset shift+cmd+R. This looks like an odd behaviour.

Removing the cookies from the page will show:

> OOPS THERE WAS A PROBLEM, PLEASE CHECK YOUR INPUT AND SUBMIT THE FORM AGAIN.

Is there a particular reason to have the notifications not reset on the form submission even with the `reset: true` flag?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the YAML form configuration shown, including `process: reset: true` and the success message. Check what happens after submission, a cache reset with Shift+Cmd+R, and cookie removal. Done means the notification behavior is explained and the form reset state is consistent after submission and cache refresh.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.