I have a site where we load in JQuery etc in the footer using a script loading call. Previously this worked with Forms.
In the latest version, I get large red boxes in the forms saying that JQuery isn't loaded. If I follow the instructions to move the form scripts after our code to load JQuery, I still get the error. the only way I can get it to go away is to add the scripts in the head of the site.
Fixed the error. In the Scripts Partial, it runs the dependency check before the page has finished loading, so if you load the script in using require JS or similar, it breaks. I changed the detection code to:
Actually, scratch that, there's a bunch of stuff in the other script files that want jQuery before the page has finished loading, this might be a bigger issue.
Are you loading in JQuery and other dependencies via a loader like app JS? If so, it won't currently work, unless you loads the scripts in the header. loading in the footer seems to cause some issues. We're still investigating this and trying to work round it.
Query Not Loaded Error
I have a site where we load in JQuery etc in the footer using a script loading call. Previously this worked with Forms.
In the latest version, I get large red boxes in the forms saying that JQuery isn't loaded. If I follow the instructions to move the form scripts after our code to load JQuery, I still get the error. the only way I can get it to go away is to add the scripts in the head of the site.
Fixed the error. In the Scripts Partial, it runs the dependency check before the page has finished loading, so if you load the script in using require JS or similar, it breaks. I changed the detection code to:
You may want to add this to the Forms codebase!
Actually, scratch that, there's a bunch of stuff in the other script files that want jQuery before the page has finished loading, this might be a bigger issue.
Any luck with this? I am new here and also new to Umbraco and I am having the same issue.
Thanks, Mark
Are you loading in JQuery and other dependencies via a loader like app JS? If so, it won't currently work, unless you loads the scripts in the header. loading in the footer seems to cause some issues. We're still investigating this and trying to work round it.
If you're not using a script loader, just make sure you have the three required scripts included in the head of the page: https://our.umbraco.org/documentation/products/umbracoforms/developer/prepping-frontend/
Thanks Tim, I added that to my template in the cms and it fixed the issue.
is working on a reply...