• Resolved dtowns

    (@dtowns)


    Contact Form 7 version 3.7.2.

    The form is working fine EXCEPT the “success” message is not displayed.
    I know the form is submitted successfully as I receive notification emails.
    But as there is no “success” message displayed, the users often click the send button multiple times resulting in multiple emails.
    If I deliberately fill in a field incorrectly, the error messages are displayed as expected i.e.Validation errors occurred. Please confirm the fields and submit it again.
    I added the [response] tag to the top and bottom of my form. Now I see the error messages top and bottom, but I still never see a “success” message.

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter dtowns

    (@dtowns)

    I checked the source after successfully submitting the form. The line:
    <div class="wpcf7-response-output wpcf7-display-none wpcf7-mail-sent-ok" style="display: none;"></div>
    appears above and below the form.
    There is no text in the DIV and even if there were, the CSS is set to display:none.
    In the “messages” section of the form, the message:
    # Sender’s message was sent successfully
    is set to:
    Your message was sent successfully.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try switching to the default theme and deactivating all other plugins.

    Thread Starter dtowns

    (@dtowns)

    Hello,
    I already tried that. I deactivated all plugins (except contact form 7) and switched to the latest version of the twentyfourteen theme.

    Still saw exactly the same thing – error messages displayed fine, but success message not displayed.

    I just did this test again to be absolutely sure.

    Btw I am using the Sterling Theme V2.2

    This is still most likely due to a Javascript conflict with either your current WordPress theme or one of the other plugins you are using – see Contact Form 7 Email Issues – there is a link there that covers Javascript Conflicts.

    In your case some Javascript error on your site is probably preventing the final CF7 JavaScript running that sends the Success message.

    Thread Starter dtowns

    (@dtowns)

    Hi buzztone,
    Sorry but I think you misunderstood. There is no problem with the email notifications. It’s the on-screen notification message that tells the visitor that the form was successfully submitted.

    It is very odd that the error notifications work but the success notification doesn’t.

    The generated code includes the two <div> elements as per my second post. The class “wpcf7-mail-sent-ok” is applied correctly, but the div element is empty and has the style attribute “display:none”.

    @dtowns – Definately no misunderstanding. Your symptoms are very similar to others I have seen many times in this forum.

    RE: It is very odd that the error notifications work but the success notification doesn’t.

    ???This not at all odd. It’s again very common. In fact I often deliberately don’t complete required fields to check that CF7’s JavaScript is working correctly at the start of that process.

    Your info on the two <div> elements provided previously confirmed to me that your problem is likely due to ??the final CF7 JavaScript that sends the Success message not completing.??

    Thread Starter dtowns

    (@dtowns)

    Sorry – I thought you misunderstood as the links you referred to all discuss problems with sending emails.
    OK, so you are saying that it is very common for the CF7 JavaScript to all work fine (I.e. displays error messages, sends confirmation emails etc.) EXCEPT just the one function of displaying the “success” message.
    Even this function must be running to a point, in order to set the correct CSS class of “wpcf7-mail-sent-ok” on the message DIV.

    As it still happens when I disable all other plugins and use the twentyfourteen theme, where do I go from here to find out what’s happening?

    Thread Starter dtowns

    (@dtowns)

    Problem fixed.

    Decided to follow steps here: https://codex.www.ads-software.com/Using_Your_Browser_to_Diagnose_JavaScript_Errors
    Tested on IE, FF, Chrome – all same problem.
    Added line to wp-config.php define(‘SCRIPT_DEBUG’, true); Still fails.

    Step 3 Diagnosis: In chrome saw this:

    Uncaught ReferenceError: _gaq is not defined

    Checked source and can see the new Universal GA code being used
    Searched for Universal GA code snippet and found this:
    https://www.astralwebinc.com/contact-form-7-wp-how-to-add-event-tracking-on-new-universal-google-analytics/
    Updated Additional Settings to use Universal GA code snippet.
    Fixed.

    First comment on above also leads to this:
    https://www.ads-software.com/support/topic/not-shown-message-was-sent-ok-if-tracking-form-submission
    This was exactly my problem.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘All responses showing except "success"’ is closed to new replies.