• Resolved axiom28

    (@axiom28)


    Hello
    On the contacts page of this website, I am getting this error message displayed just over the contact form:
    Heads up! WPForms has detected an issue with JavaScript on this page. JavaScript is required for this form to work properly, so this form may not work as expected. See our troubleshooting guide to learn more or contact support.

    This message is only displayed to site administrators.

    What does this mean and how do I fix?

    PS. Please update your form validation, my address [email protected] is not recognised, it is a valid South African domain.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Amjad Ali

    (@amjadali688)

    Hi @axiom28 ,

    Thanks for reaching out!

    The JavaScript-related warning you’re seeing is usually caused by cache or optimization plugins. I checked your site and noticed you’re using the WP-Optimize cache plugin, which can sometimes minify or defer scripts in a way that affects WPForms.

    To resolve this, please try the following:

    Go to WP-Optimize → Minify → JavaScript and disable the “Enable minification of JavaScript files” option, as you can see in this screenshot: https://quicksnip.com/s/nqcybmf6jkv4dp0. Save the settings, clear your site cache, and then check the form again.

    If the issue still persists, you can exclude the WPForms script from optimization by adding this path in the “Exclude JavaScript from processing” field:

    /wp-content/plugins/wpforms/assets/js/frontend/wpforms.min.js

    These steps usually resolve JavaScript-related issues like the one you’re seeing. For more details, you can also read this article: https://wpforms.com/docs/how-to-troubleshoot-javascript-issues-in-wpforms/

    Regarding the email validation, it looks like this is related to our email suggestions feature, which can sometimes flag certain domains.

    You can disable this feature in two ways:

    Disable per form

    Open your form in the WPForms builder, click on the Email field, go to the Advanced tab, and turn off the email suggestions option. Here’s a screenshot for reference: https://a.supportally.com/i/uziQsV

    Disable site-wide via custom code

    You can use this snippet: https://library.wpcode.com/snippet/j57ry6og/
    Add it using WPCode or any code insertion method you prefer.

    For more details on adding custom code, you can check this guide: https://wpforms.com/developers/how-to-add-custom-php-or-javascript-for-wpforms/

    Hope this helps!

    Plugin Support Amjad Ali

    (@amjadali688)

    Hi @axiom28 ,

    We haven’t heard back from you in a few days, so I’m going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.