Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Form return to same page form

form

Started by Arno De Jinghe 8 years ago · 0 replies · 720 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 FrViPofm, 5 days ago
5 100 4 days ago
Forms & Blueprints · by Ton Haarmans, 6 years ago
13 2119 7 months ago
Forms & Blueprints · by Hugo Oliveira, 8 months ago
0 604 8 months ago
Forms & Blueprints · by Flachy Joe, 9 months ago
9 694 9 months ago
Forms & Blueprints · by Augustus, 10 months ago
7 741 10 months ago