Hi.
I've changed to V2 invisible, and the form.yaml is this:
recaptcha:
version: 2-invisible
theme: light
site_key: XXXXXXXXXXXX
secret_key: XXXXXXXXXXXX
In contact.md ...
-
name: g-recaptcha-response
label: Captcha
type: captcha
recaptcha_not_validated: 'Captcha not valid!'
process:
captcha: true
However, is still failing with message "Captcha not valid".
My contact.html.twig modular page has this code:
{% block content %}
<!-- Contact -->
<section id="contact" class="wrapper style2">
<div class="inner narrow">
<header class="heading major">
<h2>{{page.title|raw}}</h2>
<p>{{page.header.subtitle|raw}}</p>
</header>
<form action="#" method="post">
{% include 'forms/form.html.twig' with { form: forms('contact-form') } %}
</form>
</div>
</section>
{% endblock %}
Is there any wrong?