including page and group titles in email template
# help-with-umbraco
i
Hi all, hope you’re doing well. My team has figured a way to do conditional logic in the email templates per my last forum post. We’re stumped however by attempting to get the page and group titles to show in the email templates. We’ve tried accessing the form service to look for the info using form id but the protection level is too high. Does anybody have any ideas as to how we can get around this or if we have to at all. Much love and take care all. ❤️
s
I assume you're talking about Umbraco Forms and you're trying to get the page from which the form was posted? The easiest way is to add a hidden field to your form. You use one of the special field tags "magic strings" so that when the form is loaded Umbraco will fill in the page name / url and then you can use this field in your email template. https://docs.umbraco.com/umbraco-forms/developer/magic-strings
12 Views