Home › Forums › Quform PHP › reCaptcha 3 form not submitting
Hello, I am having issues with configuring reCaptcha v3. I followed the instructions; everything seems okay until I try to submit the form. It then shows a validation message that the reCapture required field is missing.
$recaptcha = new Quform_Element(‘g-recaptcha-response’, ‘reCAPTCHA’); $recaptcha->addValidator(‘required’); $recaptcha->addValidator(‘recaptcha’, array( ‘secretKey’ => ‘6Leiu9AZAAAAAPoo3uU6JwP7upFlcxuY62-y0AO6’, ‘version’ => ‘v3’, ‘threshold’ => 0.5 )); $recaptcha->setIsHidden(true); $form->addElement($recaptcha);
When I remove: $recaptcha->addValidator(‘required’); from the process.php page the form works, but I guess it not working correctly?
I have checked the site and secret keys. The Google validation badge shows. https://www.westbayde.com/quform-test/
Thanks, Mike
Operator error, sorry. Fixed and working (jQuery was not loading).