Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

reCaptcha validation ignored

form plugins

Started by pg@grav 6 years ago · 0 replies · 1085 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 DrPen, 1 month ago
2 478 1 month ago
Plugins · by renedebaaij, 2 months ago
1 350 1 month ago
Plugins · by Thomas, 1 month ago
1 375 1 month ago
Plugins · by complanar, 2 months ago
6 699 2 months ago
Plugins · by BenLaKnet, 2 months ago
1 642 2 months ago