In an email using a personalization token that is a Checkboxes (Select multiple options) type. The value for this displays as a string separated by commas by default. I’d like to output as an unordered list. I don’t seem to be able to make this work. Maybe the dynamic token is generated out of order for the Hubl filtering?
Is there a way to do this with a module or some other method?
Heres the code:
<p>Your discount codes</p><ul>{% set codes = contact.discount_codes %}{% for c in codes|split(',') %}<li>{{ c }}</li>{% endfor %}</ul>
Hi @MBrookshire ,
I can’t say for certain without seeing the email but very happy to share my input. By default, the checkbox property should display the values by the order set within the property. If you would like to re-order the values, you could edit the property settings and drag to reorder the list.
Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regards.