S
S
strify_252020-07-29 11:58:41
JavaScript
strify_25, 2020-07-29 11:58:41

Why is the invisible recaptcha check constantly appearing?

There are several forms on the page. They have a container for recaptcha (id is different in different forms, of course), I call it using js
<div id="askMeCaptcha"></div>

if ($('#askMeCaptcha').length > 0) {
        askMeCaptcha = grecaptcha.render('askMeCaptcha', {
            'sitekey' : sitekey,
            'callback' : askMeFormSend,
            'size' : "invisible",
            'badge' : 'inline'
        });

        grecaptcha.reset(askMeCaptcha);
        grecaptcha.execute(askMeCaptcha);
    }


When you go to the page with forms, the recaptcha check constantly appears. And several - by the number of forms on the page. Even if you pass them all, refresh the page - these checks will appear again. How to fix it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question