When inspecting the page with the User form, I managed to identify an error on the page where the form is loaded - "jQuery is not defined" - See image attached. How do I go about defining the custom script loaded in the "After Fields" section of the Formidable Form?
The error is just what it implies, that the jQuery libraries are not included. You can choose to either include it for just that page or use a header/footer injection plugin to include it for all pages. See the basic info here - https://www.w3schools.com/jquery/jquery_get_started.asp
It's either what Rob said, or you have some type of optimization happening that is loading jQuery after your function. Is jQuery loading in the head or foot of your theme? It should be loading in the head. If it loads after your form, you'll get the error message you see.
Good point Victor, you can either post the URL to the page or inspect the page source yourself to see and search for jquery and see if the files are loaded at all.
Thanks Rob!
It seems to be a problem with the Kadence Theme I'm using. Kadance force my scripts to be loaded after the rest of the page.
When adding the script manually to my site's footer.php, it works. Not ideal, but at least I now have a working solution.
I tried using various plugins (e.g. WPCode) to inject the script, but even these seem to be loaded outside of the theme.
FYI: Control over Header/Footer details is a Premium/Pro feature of Kadence
Please login or Register to submit your answer