is there a way to link a defined E-Mail greeting or Postal greeting if the communication style "formal" or "informal" is selected?

I thought it could work with CiviRules but we don't have it installed so far. So is there another way? I already tried it with the following token:

{if"{contact.communication_style}=="formell"}Sehr geehrte Damen und Herren

But it doesn't work. If I select "formell" there is still another greeting selected.

Thank you for any help Tina


If you're talking about CiviMail message templates I think this is very similar to this question, maybe even a duplicate. You need to use {capture} and then put the captured variable in your if statement.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.