XF 2.2 (Solved) How to get the formatted values of an array of custom thread value (checked options)?


Active member
e.g. field1 = value1, field2 = value2, field3 = value3

if field1 and field3 are chosen, how do I output it to "value1, value3"?

I know for a field with single value, it's {$thread.custom_fields.getFormattedValue('value')}

But if I use that code, I'll get the following (example):

<ol class="listInline listInline--customField" data-field="country"><li>USA</li><li>India</li></ol>

I only need: USA, India

XF2.2 seems has changed something regarding this.
Last edited: