Try our conversational search powered by Generative AI!

XForms not rendering in a solution upgraded to 11



We are experiencing that our XForms aren't being rendered, but only showing up as "EPiServer.XForms.XForm" when we try to render it in the view with the following line:

@Html.PropertyFor(x => x.CurrentPage.Form, new { XFormParameters = new EPiServer.XForms.Util.XFormParameters { PostAction = "FormPosted", SuccessAction = "FormSuccess", FailedAction = "FormFailed" } })

Our solution was originally version 7.somethin and was recently upgraded to 11.5.4. During the upgrade we added the new separate packages for XForms.

Does anyone have any pointers?

Aug 14, 2018 14:06

There looks like XForms isn't loading at all. In edit mode the XForms properties are shown as a textarea with a GUID value in it.

Aug 15, 2018 8:30

From v11 onwards xforms was turned into an optional package: can you try installing it and see if it solves your problem?

Post talking about the xforms package:

Aug 16, 2018 0:35

Hi David. Thank you for answering. I had added the XForms package. There turned out to be a <remove assembly="EPiServer.XForms" /> in episerver.framework.config that has been in the solution forever (and I don't know why it was there in the first hand). But that of course caused problems for me. Why you would do remove of assemblies like that I find a bit weird.

Aug 29, 2018 9:20

Hi I’m glad you got this sorted in the end. One common reasons why people used to exclude assemblies as you described was to try and improve start up times as I wrote about here:

Good luck and hope you can transition to using Episerver Forms instead of xforms soon!

Aug 29, 2018 11:01

Thanks for the link and the follow up. I hope we will be able to upgrade as well :)

Aug 29, 2018 11:02
This thread is locked and should be used for reference only.
* 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.