Try our conversational search powered by Generative AI!

Episerver forms - Javascript failing to load

Vote:
 

Hello! :)

I have an issue with episerver forms that i could use some guidance on, I can't use the "confirmation message" function for epiforms because of a javascript error. 

Javascript error

This error occurs outside edit mode when viewing the page.

Episerver forms version: 1.1.4.9000 

I have tried to uninstall and reinstall from the package manager console but it didn't work.

Any tips and help is much appriciated, Thanks! :)

#147848
Apr 26, 2016 14:54
Vote:
 

Will it throw the same error even if EPiServer.Forms is uninstalled?

#147866
Apr 26, 2016 23:02
Vote:
 

Check that you make it possible for episerver to insert scripts on your views. You need 

@Html.RequiredClientResources("Header")
...
@Html.RequiredClientResources("Footer")

in your view or layout

#147867
Apr 26, 2016 23:24
Vote:
 

Thanks for your responses guys! It works now.

@Robin The error was not present when forms was uninstalled if you still wanted to know =)

Have a good day!

#147875
Apr 27, 2016 9:26
Vote:
 

This will also make it possible to render the episerver context menu in top right corner of pages for editors fyi :)

So that should work as well now if you were missing it...

#147886
Apr 27, 2016 11:18
Vote:
 

Excellent:) Working so long in a bigger project makes you forget how the most basic things are set up when you create a new one :D thanks

#147917
Apr 27, 2016 17:03
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.