Skip to content

Instantly share code, notes, and snippets.

@alasvant
Created March 24, 2019 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alasvant/9ca77445049ca7da21f6f47ea232050d to your computer and use it in GitHub Desktop.
Save alasvant/9ca77445049ca7da21f6f47ea232050d to your computer and use it in GitHub Desktop.
Sample code for creating custom Episerver Forms form container block. This is the controller code part.
using EPiServer.Forms.Controllers;
using EPiServer.Forms.Implementation.Elements;
using System.Web.Mvc;
namespace SampleCustomFormContainer.Controllers
{
public class SiteFormsContainerBlockController : FormContainerBlockController
{
public override ActionResult Index(FormContainerBlock currentBlock)
{
return base.Index(currentBlock);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment