Skip to content
Grav 2.0 is officially stable. Read the announcement →
Forms & Blueprints

Form return to same page form

form

Started by Arno De Jinghe 8 years ago · 0 replies · 675 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 Ton Haarmans, 6 years ago
13 1863 6 months ago
Forms & Blueprints · by Hugo Oliveira, 7 months ago
0 451 7 months ago
Forms & Blueprints · by Flachy Joe, 8 months ago
9 548 8 months ago
Forms & Blueprints · by Augustus, 9 months ago
7 570 9 months ago
Forms & Blueprints · by Julien, 9 months ago
10 590 9 months ago