Copied to clipboard

Flag this post as spam?

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


  • Matt 358 posts 841 karma points
    Apr 28, 2023 @ 07:14
    Matt
    0

    Umbraco forms email template

    Hi,

    i'm using umbraco forms 10, is there a way where I can only display certain fields in an email template that gets sent out?

    E.g

    The email would be like

    Hello {Name}

    Thank you for applying for {CourseName}

    Thanks

  • Marc Goodson 2155 posts 14408 karma points MVP 9x c-trib
    Apr 28, 2023 @ 21:02
    Marc Goodson
    0

    Hi Matt

    Yes, you can I believe create a partial view for your email template and it gets sent the fields from the form so you can customise accordingly with razor.

    There is an example here in the docs

    https://docs.umbraco.com/umbraco-forms/v/10.latest-lts-2/developer/email-templates

    (although some of the syntax in the example is out of date, it hopefully gives you the gist)

    Regards

    Marc

Please Sign in or register to post replies

Write your reply to:

Draft