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)?
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
Hi Anthony,
I think you can reference them like this
Header text: @Model.HeaderHtml
Footer text: @Model.FooterHtml
is working on a reply...