Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

'reset: true' in form resets form data in thankyou page

Solved by paul View solution

Started by paul 7 years ago · 1 replies · 775 views
7 years ago

Like the title says, my contact form has the parameter

YAML
process:
   reset: true

This seems to prevent the submitted form data from showing in the thankyou page.

Removing reset: true or setting to false allows the data to be posted.

Is there a workaround for this?

7 years ago Solution

I didn't read the docs carefully enough:

By default, the form is not cleared after the submit. So if you don't have a display action and the user is sent back to the form page, it's still filled with the data entered. If you want to avoid this, add a reset action:

Going to a thankyou page is a display action, therefore reset is not appropriate.

👍 1

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by Anna, 2 days ago
2 53 16 hours ago
Forms & Blueprints · by Anna, 3 days ago
7 82 16 hours ago
Forms & Blueprints · by Anna, 1 week ago
5 186 6 days ago
Forms & Blueprints · by TomW, 1 month ago
3 379 1 month ago
Forms & Blueprints · by Japhy, 2 months ago
2 595 2 months ago