Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi,
    we have tried to use the solution (thanks to whyameye) adding it in one of the javascript in our theme, just with some little fixes.
    It seems working fine also with more that one contact form in the same page.

    The code we have used is the following:

    /*===============================================*/
    $(document).ready(function() {
    /*..*/
    fixCF7MultiSubmit();
    }
    function fixCF7MultiSubmit(){
    jQuery(‘input.wpcf7-submit[type=”submit”]’).click(function() {
    var disabled = jQuery(this).attr(‘data-disabled’);
    if (disabled && disabled == “disabled”) {
    return false;
    }else{
    jQuery(this).attr(‘data-disabled’,”disabled”);
    return true;
    }
    });
    jQuery(‘.wpcf7’).bind(“wpcf7submit”,function(){
    jQuery(this).find(‘input.wpcf7-submit[type=”submit”]’).attr(‘data-disabled’,”enabled”);
    });
    }

Viewing 1 replies (of 1 total)