Had what probably seemed quite a straightforward request for an EPiServer site in development that's using EPiServer Forms - an add-on that allows editors to create their own forms to receive input from the site visitors and review the submissions in the back-office. They wanted a confirmation email to go to the recipient. Of course though, we don't know what fields the editors are going to create. There may not be one for the visitor's email address. nd even if there were, how can we know which field is the one to use? I came up with a solution to this that requires some simple conventions for the editor to follow but is quite straightforward for them to set up. The first step was to create a new model for the form, inheriting from the base one provided but adding additional properties for the confirmation email details: public class FormContainerWithConfirmationEmailBlock : FormContainerBlock, IHasConfirmationEmail { [Display( Name =
Senior Developer and head of DXP at Umbraco. Previously with Zone, building solutions primarily on .NET and using Umbraco, EPiServer and Sitecore CMS. This blog is used as a repository for various tips, tricks, issues and impressions drawn from the use of technology my work and interests. All words are my own.