reCaptcha 3 form not submitting

Home Forums Quform PHP reCaptcha 3 form not submitting

This topic is: resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31986
    mikeprime888
    Participant

    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

    Attachments:
    You must be logged in to view attached files.
    #31988
    mikeprime888
    Participant

    Operator error, sorry. Fixed and working (jQuery was not loading).

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy