I found a solution for the non-working Ajax.
The layout file was missing this in the footer:
@Html.RequiredClientResources("Footer")
Without this the Controller couldn't inject EPiServerForms.js
Bump question
I seem to have an similar issue with ajax mode not working. I can post form with postback and get an form status message but no js validation seems to be called.
I have both the requiredclientresources footer and header, get no errors in console and can call ex: console.log(epi.EPiServer.Forms);.
In form config we have set the inject own jquery to true to avoid potentiall problems with jquery version, also tried removing all our application specific scripts.
We have the latest epi cms version and latest stable epi forms.
Hi!
I can't get Forms to use the Ajax-functionality in my project. Whatever I set in forms.config the form always falls back to the nonJs-version.
Strangely also the Forms tab is not showing along with Media and Block, don't know if this is related.
forms.config:
workInNonJSMode="false"
injectFormOwnJQuery="true"
The Chrome console does not show any errors.
I am using:
EPiServer.CMS.UI 9.3.8
EPiServer.Framework 9.6.1
EPiServer.Forms 1.0.0.9000
Any idea what the reason might be?