HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In
GitHubNuGetDev CommunityDoc feedback


Optimizely Forms is only supported by MVC-based websites and HTML5-compliant browsers.

In some cases, you might want to customize the Form Container Block to improve the rendering process or add more features to the form. For example, you might want a property called `HasTwoColumns `to control whether the form should render a layout of two columns.

  1. Create new class `EPiFormWithTwoColumnOptionBlock`.

  2. Create new class `EPiFormWithTwoColumnOptionBlockController`.

  3. Copy _FormContainerBlock.cshtml_ in folder _\\modules_protected\\EPiServer.Forms\\EPiServer.Forms.zip\\Views\\ElementBlocks\\Components\\FormContainerBlock _ to new folder in Alloy site _\\Views\\Shared\\ElementBlocks\\Components\\EPiFormWithTwoColumnOptionBlock_ Then update some code like this:


    Add code to the body of view.