November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Hi Shella,
Strange that it is working for you locally but not on integration. If I remember correctly the controller is skipped sometimes and I haven't found an exact cause for it. To make sure that it always calls the controller you can give the view a different name than the block model (just like in the blog post where the view name has an underscore). You could try renaming the 'Site2FormContainerBlock' partial view and see if that works.
Yeah, for now I've moved the CSHTML from the Shared folder to another non-default folder (e.g. /Blocks on Area) and it seemed to work.
Episerver version: 11.10
I have created a customised FormContainerBlock that uses a controller with TemplateDescriptor.
(Based from https://www.luminary.com/blog/customising-episerver-forms )
Block:
Controller - the view bag values are getting set from the FormContainerBlockController
ALL is working well on my local machine.
However, when it had been deployed to the integration server (DXC), the site went straight to the Site2FormContainerBlock.cshtml (ignoring the controller). Thus, displaying an error message due to the ViewBag fields not being set.
Is there any server-side setting that could possibly override the TemplateDescriptor?
Also, when I've checked the Content Type Definition Settings in CMS > Admin > Content Types > Blocks > [Site 2 Form Container Block] > Settings, the controller "Site2FormContainerBlockController" has been listed TWICE under the MVC Dropdown.