I assume as the Concrete form block works when it posts data, I’m need to add something to my ajax data array. But I don’t see anything particular to the captcha. Any idea what variable is posted for the captcha check in the form?
The first thing you should do is check that your $_POST ($this->app->request->request->all()) in the controller actually contains the captcha value submitted. If not you’re doing something wrong when submitting your form.
That’s what I’m asking - what variable should I send through ajax to the controller to check? The post array contains all the form variables, like name, email etc. - all that I’m sending. But I’m not sending anything else. What should that be?
Just to be clear, I’m using the Google reCaptcha3, not the core Securimage.