Try our conversational search powered by Generative AI!

JS-error after upgrading to CMS 11

Vote:
 

We are seeing this error on a page with a simple form

Uncaught ReferenceError: epi is not defined
    at initializeOnRenderingFormDescriptor (GetFormInitScript?formGuid=ffd2ca48-6da9-4be4-9a67-19aecdc74667&formLanguage=sv:7)
    at GetFormInitScript?formGuid=ffd2ca48-6da9-4be4-9a67-19aecdc74667&formLanguage=sv:32

It is happening here:

(function initializeOnRenderingFormDescriptor() {
    // each workingFormInfo is store inside epi.EPiServer.Forms, lookup by its FormGuid
    var workingFormInfo = epi.EPiServer.Forms["ffd2ca48-6da9-4be4-9a67-19aecdc74667"] = {



#189015
Mar 08, 2018 14:37
Vote:
 

It seems that the EPiServerForms.js is not loaded correctly. Do you have @Html.RequiredClientResources("Footer"), @Html.RequiredClientResources("Header") on your template. Is there any 404 error in your browser console?

#189031
Mar 09, 2018 3:11
Vote:
 

Thanks, That was the problem, a little _ had slipped in to the required....
Now it works!

#189049
Mar 09, 2018 11:18
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.