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

reCaptcha validation ignored

form plugins

Started by pg@grav 6 years ago · 0 replies · 671 views
6 years ago

I'm using Form v4.3.0 with v1.6.31 and reCaptcha Version 2 with checkbox on a modular page.
The Captcha ist working and i can send mails but if I do not check the reCapture checkbox and send the mail the 404-page is shown after pressing the send-button. Of course the email is not send. The .md is as follows.

YAML
form:
    name: my-nice-form
    action: /contact

    fields:

       ....
        - name: g-recaptcha-response:
          label: Captcha
          type: captcha
          recaptcha_not_validated: 'Captcha ist nicht korrekt!'
          validate:
            required: true
process:
        - captcha: true
          message: 'Successfully passed reCAPTCHA!'
        - email:...

Could anybody give me a hint, why the reCaptcha is ignored and the send-button is working without checking the reCaptcha field?
Thanks very much in advance.
PS: Problem /forum/forms-blueprints/recaptcha-validation-client-side-not-working-t2516 seems to be similiar perhaps, the JS is not working for me/not a solution.

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Mathieu Lecouturier, 6 days ago
3 132 3 days ago
Plugins · by Slebeig, 4 weeks ago
1 296 4 weeks ago
Plugins · by Rene, 2 months ago
2 456 2 months ago
Plugins · by Xavier, 2 months ago
2 373 2 months ago
Plugins · by Luka Prinčič, 7 years ago
3 1597 2 months ago