But since some recent updates, the AJAX part ceased to work. Now after submission of the form, the whole page is reloaded and the response message appears alone on this empty page.
When I disable the captcha, things work fine.
After some testing:
It works with Grav v1.6.19 and Form v3.0.8.
But fails when I update to Form v4.0.0.
I use reCaptcha v2 (checkbox) on my page with Form plugin v6.0.0 and it works just fine with Ajax form I remember it took a while to implement Ajax form in the module page overall, but there’s no issue now
I use reCaptcha v2 (checkbox) on my page with Form plugin v6.0.0 and it works just fine with Ajax form
You make it sound as if adding reCaptcha to the Ajax tutorial mentioned before is a piece of cake and is working fine. However, your code seems quite complex…
Is all of your code needed to get reCaptcha to work instead of merely adding a captcha field and process field?
IIRC, this all code and additional template was needed just to make Ajax work in modular page and has nothing to do with reCaptcha itself. It’s been a couple of years now I think, so my memory might play tricks, but I’m pretty sure this is the case And with this approach I can now add my Ajax form wherever I want