Does everything work if you switch to a default theme? I’m wondering if it’s a problem with the theme or simply the reCAPTCHA setup itself.
When I try another theme, I get this error message before submit in my 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.
But I can see my reCaptcha checkbox and I can also submit the form. So I guess there is issues in my theme and also something with my form?
I have also double checked that JavaScript is enabled in my browser, and it is. I’m using Chrome.
-
This reply was modified 2 years, 10 months ago by
amandahwatz.
-
This reply was modified 2 years, 10 months ago by
amandahwatz.
I’m not familiar with how WPForms works, but I don’t see any WPForms JavaScript being loaded on your page at all. I suspect that is the issue, but I don’t know why it’s not loading it.
I don’t have any Javascript errors in my console so I don’t know why it wouldn’t run. I have tried to run the wpforms.js file from the plugin manually by enqueuing it in my functions.php file, but that creates other issues and I couldn’t solve it that way.
I also don’t understand why the reCaptcha checkbox is visible in the default theme and not in my custom theme. What is needed for it to work?
I would try running WPForms with reCAPTCHA on a fresh WordPress install and then slowly add the plugins and/or theme you are using to see what causes the issue.
But the reCaptcha checkbox shows up when I change the theme to a default theme, so something must be missing in my custom theme for it to show up.
I have looked in the functions.php file for the default themes, but I can’t see anything obvious that I need to add..
Yes, there’s something going on with the theme it seems. But even with a default theme, it doesn’t work correctly (the WPForms JavaScript is not included). It’s possible that whatever is causing that issue is also affecting your theme.
So that’s why I’d start with just getting WPForms to function correctly without your theme. The easiest way to do this is to start with a blank WordPress site somewhere and add your plugins/code until WPForms breaks again. Then figure out what specific plugin/code conflicts with WPForms.
-
This reply was modified 2 years, 10 months ago by
KratosGemini.
Yes I understand. You are probably right, I will try to set up a new site and see if I can find the problem.
Thank you for answering 🙂