• Hi all,

    I’ve found a problem which I can’t solve myself. When I submit my form I get error message in screenshot which also causes form validation to fail. Required inputs are filled in but not recognized. I’ve disabled required input, same issue. I’ve disabled all my plugins except for WPCF7, same issue. I’ve also disabled my complete theme (Salient v10) + plugins and defaulted to TwentyNineteen, same issue. I’ve also disabled cache on my hosting and the issue still persists.

    In the end I solved it by completely deleting the scripts.js from the wp-content/plugins/contact-form-7/includes/js folder. Now my form submits fine.

    Screenshot: https://ibb.co/VVBMpLX
    Wordpress version: 5.1.1
    Plugin version: 5.1.1

    UPDATE: define(‘WPCF7_LOAD_JS’, false); also solved it without having to delete the file.

    • This topic was modified 5 years, 7 months ago by sanderdb.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • define(‘WPCF7_LOAD_JS’, false); also solved it without having to delete the file

    Using this disables all of CF7’s JavaScript code.

    If this solves your problem it’s likely you have a JavaScript conflict within your WP theme or one of the plugins you are using.

    I examined your current form using Dev Tools & found the following error warning:

    Google Maps JavaScript API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

    This may be the root cause of your problems.

    Note: When you disable all of CF7’s JavaScript code you lose all of CF7’s Javascript functionality which is important for things like form validation.

    When I submit my form I get error message in screenshot which also causes form validation to fail.

    Before you started deleting CF7 code (which is usually a bad idea) what error did you see – what color was the error border?

    Thread Starter sanderdb

    (@sanderdb)

    I will try fixing the Google Maps API, but this also occurred with the default theme and no other plugins enabled, I couldnt find any js conflicts.

    I didn’t get an error/border from cf7 itself. Only got the error in the screenshot in dev tools and an infinite spinning indicator next to the send button.

    and an infinite spinning indicator next to the send button

    This is highly indicative of a JavaScript conflict.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Issue with scripts.js of WPCF7’ is closed to new replies.