

            wpcf7_recaptcha.execute_on_contactform = function() {
                wpcf7_recaptcha.execute(wpcf7_recaptcha.actions['contactform']);
            };

            grecaptcha.ready(
                wpcf7_recaptcha.execute_on_homepage
            );

            document.addEventListener('change',
                wpcf7_recaptcha.execute_on_contactform
            );

            document.addEventListener('wpcf7submit',
                wpcf7_recaptcha.execute_on_homepage
            );


        