Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stu 1 post 71 karma points
    Aug 13, 2020 @ 20:40
    Stu
    0

    Extending Umbraco Forms Email Sender

    Hi,

    I'm trying to extend the Umbraco Forms email-sender in as elegant a way as possible.

    I've created a custom workflow with additional fields (title, body e.c.t), however, I wanted to extend the 'FormsHtmlModel' to include these so that if the user mixes up the templates the whole thing won't implode in on itself as my end users are not particularly tech-savvy.

    I tried creating a new model:

       public class FormsEmailModel : FormsHtmlModel
    {
        public FormsEmailModel(FormFieldHtmlModel[] fields) : base(fields)
        {
    
    
        }
    
        public string Title { get; set; }
    
        public string Body { get; set; }
    }
    

    and changing the base the model on all the templates, thinking that in theory, it would make them cross-compatible.

    Any advice would be appreciated,

    Thanks

    Stu

Please Sign in or register to post replies

Write your reply to:

Draft