jQuery has not been loaded & is required for Umbraco Forms.
Hi,
I am fairly news to forms so may be missing something obvious. However, i am seeing the following error when placing my scripts and macro just before the closing body tag
I have watched the umbraco forms videos and also been reading the documentation over at https://our.umbraco.org/Documentation/Add-ons/UmbracoForms/Developer/, in particular the Preparing your Frontend section and the 'extra step' (https://our.umbraco.org/Documentation/Add-ons/UmbracoForms/Developer/Rendering-Scripts/) but cant see what i am missing ?
I understand the issue is that the form scripts are calling JQUERY before it is loaded in, hence the error. It seems like the error is being caused becuase the scripts are being called twice?
Go to -> Developers -> Partial View Macro Files -> InsertUmbracoFormWithTheme.cshtml -> at the end of this page you'll see something along the lines of:
Html.RenderAction("RenderForm", "UmbracoForms", new {formId = form, recordId = recordGuid, theme = theme, includeScripts = includeScripts });
change it to:
Html.RenderAction("Render", "UmbracoForms", new {formId = form, mode = "form", recordId = recordGuid, theme = theme, includeScripts = includeScripts });
jQuery has not been loaded & is required for Umbraco Forms.
Hi,
I am fairly news to forms so may be missing something obvious. However, i am seeing the following error when placing my scripts and macro just before the closing body tag
I have watched the umbraco forms videos and also been reading the documentation over at https://our.umbraco.org/Documentation/Add-ons/UmbracoForms/Developer/, in particular the Preparing your Frontend section and the 'extra step' (https://our.umbraco.org/Documentation/Add-ons/UmbracoForms/Developer/Rendering-Scripts/) but cant see what i am missing ?
I understand the issue is that the form scripts are calling JQUERY before it is loaded in, hence the error. It seems like the error is being caused becuase the scripts are being called twice?
Umbraco version is 7.8 and form version is 6.0.7
Thanks Paul
Just stumbled across https://our.umbraco.org/forum/umbraco-forms/85704-umbraco-forms-601-jquery-placement and following the answer works
Go to -> Developers -> Partial View Macro Files -> InsertUmbracoFormWithTheme.cshtml -> at the end of this page you'll see something along the lines of:
i kept mode = "form" as the last param
Seems to work!
Paul
I just hit this issue and found that it was due to two copies of JQuery being loaded on the same page.
In my case, I saw an attribute called Exclude Scripts when I Excluded the script the issue got resolved.
is working on a reply...