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.

Plugins

reCaptcha validation ignored

form plugins

Started by pg@grav 5 years ago · 0 replies · 598 views
5 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 Rene, 1 week ago
2 46 1 week ago
Plugins · by Xavier, 4 weeks ago
2 55 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1181 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 49 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 73 2 months ago