Skip to content

Multiple captchas not working #512

Closed
@jeesus

Description

@jeesus

Hi there

I have a page with static contact form in the footer. Whenever I navigate to another page that also includes form with captcha, I get the following error:

TypeError: c is undefined
...(this),d=document.createElement("DIV"),e=c.reCaptchaSiteKey||b.valAttr("recaptch...

This happens only when I load a page with two forms. Removing captcha from one of them, the error won't occur. I have set up validation as follows:

$.validate({
    form: "#contact-form",
    modules: 'security',
}); 
$.validate({
    form: "#quote-form",
    modules: 'date, security, location',
    onModulesLoaded: function () {
        $('input[name="state"]').suggestState();
    },
}); 

Any ideas?

Form validator: 2.3.26
jQuery: 1.11.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions