Copied to clipboard

Flag this post as spam?

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


  • Matt 359 posts 842 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 2157 posts 14435 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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies