• Hello Takayuki Miyoshi,

    As a developer, I needed a trigger with the token of Recaptcha v3, so I had to add it in your code.

    Exactly in ./modules/recaptcha.php, line 82 (inside the function of ‘then’)

    I added the next code:

    
    /* trigger DOM event */
    var event = new CustomEvent( 'wpcf7recaptchaLoaded', {
        bubbles: true,
        detail: token
    } );
    
    document.getElementsByClassName( 'grecaptcha-badge' )[ 0 ].dispatchEvent( event );
    

    Would it be possible to include this in the next upgrade?

    Thanks for reading!! 🙌

    • This topic was modified 7 years, 4 months ago by Oropesa.

The topic ‘Trigger in Recaptcha v3’ is closed to new replies.