I’m struggling to get values from a contact property into a HUBL variable. What I want to do is something like the code below (taken from Accounts Dashboard | HubSpot).
but rather than expanding a fixed list, I would like to assign a contact property to the variable - e.g. contact.my_property. This doesn’t seem to work - can anyone show me how.
If you can’t assign a contact property to a variable, is there another way of splitting up or only displaying part of a contact property in an email using HUBL?
Thanks
Mike
{% set string_to_split = "Stephen; David; Cait; Nancy; Mike; Joe; Niall; Tim; Amanda" %}
{% set names = string_to_split|split(';', 4) %}
<ul>{% for name in names %}
<li>{{ name }}</li>{% endfor %}
</ul>