Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Client property in IF statement - Email template
Occasional Contributor
Feb 28, 2017 7:30 PM
I have a list of questions with drop-down choices and based on the answers I want to generate email report.
Ideally, HubL should solve it with something like that:
{% if contact.custom_property == “Answer 1” %}
Some text for Answer 1
{% elif contact.custom_property == “Answer 2” %}
Some text for Answer 2
{% else %}
No answer
{% endif %}
…but it doesn’t work. I can call the property {{ contact.custom_property }} in the template, but can’t use it in statements or variables.
Is there any easy way of achieving a similar result?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Reply