Formatting Checkboxes (Select multiple options) in an email

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,

Thank you so much for reaching out!

I would like to tag in some of our champions to see if they have a bit more insight: @kevinc , @Jonno_Price , and @NicoleSengers .

Best,

@JenWeiss

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.

@webdew

Not quite what I’m looking for.

I’m looking for taking the value of the filed (that is a multiselect checkbox) and output it inside an email as a HTML unformated list (UL).

I found documentation on a filter but it does not seem to work in this(email) setting. What I’m after is if here is a way to do this.