I've built a FormContainerWithNavigationBlock that is meant to wrap the original FormContainerBlock. I've got it wired up and it's mostly working, however when I call the original FormContainerBlock.ascx, it's returning an "Object reference not set to an instance of an object" exception. Is this the correct path to the original FormContainerBlock view?
@using EPiServer.Core
@using EPiServer.Forms.Implementation.Elements
@model Reyes.Episerver.Model.Models.Block.FormContainerWithNavigationBlock
@{
if (Model != null && Model.ElementsArea.Items.Any())
{
var formStepItems = Model.ElementsArea.Items.Where(x => x.GetContent() is FormStepBlock);
}
}
@Html.Partial("/Episerver/EPiServer.Forms/Views/ElementBlocks/FormContainerBlock.ascx", Model)
Hey, I answered here, but essentially, if you just want to change rendering of FormsContainerBlock, it's way easier to just override the view by copying it to Views/Shared/ElementBlocks.
I've built a FormContainerWithNavigationBlock that is meant to wrap the original FormContainerBlock. I've got it wired up and it's mostly working, however when I call the original FormContainerBlock.ascx, it's returning an "Object reference not set to an instance of an object" exception. Is this the correct path to the original FormContainerBlock view?