Core scripts and styles are not loaded when rendering macro "renderUmbracoForm"
If I use the built in "Form" or "Macro" grid component to add a form to a page, the core styles and scripts from the App_Plugin folder are loaded just fine.
However, if I call RenderMacro directly in the template, the form is displayed fine, but the styles and scripts are not loaded, and therefore validation is broken.
Are you using ClientDependency.Core.Mvc and Html.RenderJsHere / Html.RenderCssHere in your calling view?
When you say the styles and scripts "are not loaded" -- are they completely missing or are they giving bad HttpRequest status codes?
Make sure the script paths are being referenced correctly, e.g. "~/scripts/myscript.js" not just "myscript.js".
Do you have debug = "true" in your web.config? Are you properly clearing the Umbraco cache and your browser's cache? Have you tried bumping up the ClientDepenency.config version number?
I'm using Client Dependency framework yes. The script are not requested at all.
I can reproduce this on a fresh Umbraco installation, so I think it's a bug. I make a ticket on the issue tracker here
I can however load the scripts manually by rendering the "RenderUmbracoFormScripts" macro, but afaik they should load automatically when "ExcludeScripts" is set to false on the "renderUmbracoForm" macro.
Core scripts and styles are not loaded when rendering macro "renderUmbracoForm"
If I use the built in "Form" or "Macro" grid component to add a form to a page, the core styles and scripts from the App_Plugin folder are loaded just fine.
However, if I call RenderMacro directly in the template, the form is displayed fine, but the styles and scripts are not loaded, and therefore validation is broken.
I simply load the form like this:
I can reproduce this in a fresh Umbraco 7.9.2/Forms 7.0 installation.
Is this default behaviour? If yes, how can I load the core styles and scripts manually?
Are you using ClientDependency.Core.Mvc and Html.RenderJsHere / Html.RenderCssHere in your calling view?
When you say the styles and scripts "are not loaded" -- are they completely missing or are they giving bad HttpRequest status codes?
Make sure the script paths are being referenced correctly, e.g. "~/scripts/myscript.js" not just "myscript.js".
Do you have
debug = "true"
in your web.config? Are you properly clearing the Umbraco cache and your browser's cache? Have you tried bumping up the ClientDepenency.config version number?I'm using Client Dependency framework yes. The script are not requested at all.
I can reproduce this on a fresh Umbraco installation, so I think it's a bug. I make a ticket on the issue tracker here
I can however load the scripts manually by rendering the "RenderUmbracoFormScripts" macro, but afaik they should load automatically when "ExcludeScripts" is set to false on the "renderUmbracoForm" macro.
I'm having the same issue, running umbraco 7.8.2 and umbraco forms 6.0.7
Scrap that. I had to set excludescripts = "0" then it worked just fine
is working on a reply...