Copied to clipboard

Flag this post as spam?

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


  • Darren Wilson 238 posts 646 karma points
    Mar 14, 2019 @ 09:38
    Darren Wilson
    0

    Umbraco Forms: Add page headings to email templates

    Hi,

    Is it possible to add the page (or sector) headings to the email template that contains the form results? I've built a massive 10 page form and it would be useful for the client to be able to easily identify the content from each page.

    Thanks Darren

  • Lewis Logan 21 posts 132 karma points
    Mar 27, 2019 @ 16:17
    Lewis Logan
    0

    Hi Darren,

    What do you exactly mean by page headings? Today I needed to add the page name to a template. I was able to do this with the following:

    var pageName = UmbracoContext.Current.PublishedContentRequest.PublishedContent.Name;
    

    The I just need to use @pageName in the html.

    Hopefully this gets you started. Kind Regards,

    Lewis

  • Darren Wilson 238 posts 646 karma points
    Apr 11, 2019 @ 14:25
    Darren Wilson
    0

    Hi Lewis,

    Sorry for the delay. Thanks for this - I'll give it a try.

    Darren

  • LeaTark 22 posts 123 karma points
    Jul 12, 2024 @ 17:39
    LeaTark
    0

    Did you find a solution to add forms page and group title headings to templated emails?

    We have the same problem. Forms are nicely paginated with headings for groups but emails don't replicate it. That's especially a problem when multiple groups have fields of the same name, e.g. repeated blocks of contact details for different parties.

    Thank you.

Please Sign in or register to post replies

Write your reply to:

Draft