Ability to personalise greeting in e-mail templates
P
Peter Heck
Using custom fields, I want to be able to have some kind of logic for the greeting.
2 custom fields:
- Formal (yes / no) - do I name the customer by his last name or his first name
- Gender - is the customer male or female (none of my customer calls him/herself "diverse")
This would generate a mix of 4 different conditions - Field name im brackets:
- Formal - male : Sehr geehrter Herr {{Contact.LastName}}
- Formal - female: Sehr geehrte Frau {{Contact.LastName}}
- Personal - male: Lieber {{Contact.FirstName}}
- Personal - female: Liebe {{Contact.FirstName}}
Something like this (suggested by the bot, but according to support not possible):
{{#if Contact.Custom.anrede == "Formell"}}
{{#if Contact.Custom.gender == "Frau"}}
Sehr geehrte Frau {{Contact.LastName}}
{{else}}
Sehr geehrter Herr {{Contact.LastName}}
{{/if}}
{{else}}
{{#if Contact.Custom.gender == "Frau"}}
Liebe {{Contact.FirstName}}
{{else}}
Lieber {{Contact.FirstName}}
{{/if}}
{{/if}}