Copied to clipboard

Flag this post as spam?

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


  • Anthony Edge 26 posts 90 karma points
    Aug 10, 2023 @ 03:22
    Anthony Edge
    0

    Umbraco Forms - Workflow field population in Razor email templates?

    Having sourced a Razor email template example from here (https://docs.umbraco.com/umbraco-forms/v/10.latest-lts-2/developer/email-templates) I have successfully sorted out my email workflow.

    However, the Umbraco Forms workflow editing interface has two Rich Text fields "Header text" and "Footer text" that are not referenced in the Razor email template.

    How do I get these CMS-populated values into my Razor email template (and therefore, the resulting emails)?

    Thanks all, AE

  • Sebastian Dammark 583 posts 1407 karma points
    Sep 18, 2023 @ 08:58
    Sebastian Dammark
    100

    Hi Anthony,

    I think you can reference them like this

    Header text: @Model.HeaderHtml

    Footer text: @Model.FooterHtml

Please Sign in or register to post replies

Write your reply to:

Draft