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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Forms & Blueprints

Form return to same page form

form

Started by Arno De Jinghe 8 years ago · 0 replies · 555 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, 5 years ago
13 1144 4 months ago
Forms & Blueprints · by Hugo Oliveira, 5 months ago
0 63 5 months ago
Forms & Blueprints · by Flachy Joe, 6 months ago
9 138 6 months ago
Forms & Blueprints · by Augustus, 7 months ago
7 114 7 months ago
Forms & Blueprints · by Julien, 7 months ago
10 132 7 months ago