• Resolved Cronje Design Co.

    (@cronje-design-co)


    Updated Contact Form 7 to 4.9.1 and now the outcome message seems to be broken.

    I am receiving the email, but the spinner just keeps spinning, causing the sender to be unaware that the message has been sent and therefore clicking SEND multiple times.

    I have disabled my theme and activated Twenty Seventeen and the problem persists.

    Any ideas?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 16 through 30 (of 44 total)
  • https://iracearchitecture.com/wp/index.php/contact/

    When inspecting, there are a couple of ‘Blocked loading mixed active content’ warnings related to Google fonts called by the theme. That’s all I see so far.

    Joseph G.

    (@illumination2025)

    Try wrapping it:

    
    jQuery(function($) {
    }
    

    No dice.

    Joseph G.

    (@illumination2025)

    Sorryyyyyy!!!

    
    jQuery(function($) {
    })
    

    I missed the closing ‘)’.

    Still no dice ??

    Joseph G.

    (@illumination2025)

    Yes, still have console log error.

    
    (index):412 Uncaught ReferenceError: wpcf7Elm is not defined
    
    Joseph G.

    (@illumination2025)

    Need to define, which not sure why wasn’t on the other post:

    
        var wpcf7Elm = document.querySelector( '.wpcf7' );
    
        wpcf7Elm.addEventListener( 'wpcf7mailsent', function( event ) {
            $('.submit-success').fadeIn();
            setTimeout( function() {
                $('.submit-success').fadeOut();
            },5000);
        }, false );
    
    • This reply was modified 6 years, 9 months ago by Joseph G..
    Joseph G.

    (@illumination2025)

    Sorry, double posted.

    • This reply was modified 6 years, 9 months ago by Joseph G..

    Does the var call go before the jQuery wrap, or within it?

    Joseph G.

    (@illumination2025)

    
    jQuery(function($) {
    
        var wpcf7Elm = document.querySelector( '.wpcf7' );
    
        wpcf7Elm.addEventListener( 'wpcf7mailsent', function( event ) {
            $('.submit-success').fadeIn();
            setTimeout( function() {
                $('.submit-success').fadeOut();
            },5000);
        }, false );ener( 'wpcf7mailsent', function( event ) {
            $('.submit-success').fadeIn();
            setTimeout( function() {
                $('.submit-success').fadeOut();
            },5000);
        }, false );
    
    })
    
    • This reply was modified 6 years, 9 months ago by Joseph G..
    • This reply was modified 6 years, 9 months ago by Joseph G..

    Just tried again…same results. Frustrating! I really appreciate you trying to help though!

    Joseph G.

    (@illumination2025)

    Yes, sorry… trying to multi-task here and added too much ‘stuff’… look again, as I edited. I must have pasted twice.

    Sorry!

    No need to apologize. As I said, I really appreciate the effort! But I did paste the latest code and tried again. No dice unfortunately.

    Hey! Success! It turns out I needed to put the script before the close of the head tag. Again, thanks for the help!

    Joseph G.

    (@illumination2025)

    Glad you got it!

Viewing 15 replies - 16 through 30 (of 44 total)
  • The topic ‘Contact Form 7 Not Showing Success Message’ is closed to new replies.