Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Clean input form fields after submit in modular page

Started by Pedro M 6 years ago · 0 replies · 623 views
6 years ago

Hi there,

I'm turning HTML5 template into Grav Theme, and I'd like to use a contact form in the modular home. I'v following all steps in the Grav docs, and the form works fine, but when it shows the sending result, the form it showed again bellow the result message.

form_aftersubmit|690x466, 100%

If I configure the redirect option in .md contact form, when the form is sent ok, it instantly show the home page.

Two questions....

  1. Is possible hide the form, bellow the result of submitting?
  2. Is possible redirect to another page after submit the form?

Thanks in advance.

Suggested topics

Topic Participants Replies Views Activity
Plugins · by renedebaaij, 1 day ago
0 33 1 day ago
Plugins · by complanar, 3 weeks ago
6 384 2 weeks ago
Plugins · by BenLaKnet, 2 weeks ago
1 203 2 weeks ago
Plugins · by complanar, 1 month ago
2 478 4 weeks ago
Plugins · by Vladimir Novak, 2 months ago
3 758 2 months ago