grav-plugin-form | Grav Form Plugin | Form library
kandi X-RAY | grav-plugin-form Summary
kandi X-RAY | grav-plugin-form Summary
Grav Form Plugin
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- On form processed .
- Upload form files
- Finds a file with the given extension .
- Verify the captcha
- Prepare a form field .
- Get the Composer Autoloader .
- Submit reCAPTCHA request .
- Creates a Response from a JSON string
- Returns the version ranges for a package .
- Get page parameters .
grav-plugin-form Key Features
grav-plugin-form Examples and Code Snippets
Community Discussions
Trending Discussions on grav-plugin-form
QUESTION
Dear stackoverflowers,
on the site iam currently developing there is a contact form on each subpage – form included from the /contact
subpage.
Iam able to send the form on each site, but it includes the /thankyou
page in the content
block and replaces the main content of the site. So iam still on /home
page for example.
Now i want to redirect to /contact
when submitting – so that the /thankyou
page replaces the /contact
content.
I tried to add - redirect: '/contact'
to the form markdown file. But that just redirects me to /contact
and not submitting the form to the server.
Any ideas?
I used that form Example from the Grav Documentation and that twig file for displaying the thankyou message.
Thank you guys.
Karl
ANSWER
Answered 2018-Jan-09 at 17:43I just solved my problem.
add action: '/contact'
to the form and also leave the process: - display: '/thankyou
.
What happens is that it first redirects to /contact
and includes /thankyou
afterwards.
The only negative thing is that, when the validation fails, it still redirects you to /contact
. But i think that is unsolvable.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install grav-plugin-form
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page