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 →

Form return to same page form

form

Started by Arno De Jinghe 8 years ago · 0 replies · 832 views
8 years ago

Hello, I am using the form plugin and want to redirect my user to the same page to the form he just submitted with a message above it and the form cleared. I currently use the code below and it works just fine besides the redirect part to a specific part of the page in this case the form id.
Does anyone know how to do this?

YAML
forms:
  contact-form:
    fields:
      ...
    buttons:
      ...
    process:
      - email:
          ...
      - message: Thank you for getting in touch
      - reset: true
      - display: ?????

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