Copy link to clipboard
Copied
Hey Folks,
I might even have the wrong terminology but i'm stumped with this issue.
I have an array from a listbox web app item which out puts the following liquid on the DETAIL page:
"Fuel Products": "Diesel (high flow),Regular ULP,Premium ULP",
I'm wanting to switch the commas in the array with a font icon eg:
<span class="fa fa-check"></span>
I was trying to use the "Replace" filter but that's not working. And i tried using "capture" but clearly there is some funky coding that i've completely missed. Please help..
{% capture checkMark -%}<span class="fa fa-check"></span>{% endcapture -%}
{{this.['Fuel Products'] | replace: ",", "{{checkMark}}"}}
Cheers
James - RelianceIT
1 Correct answer
Hello there,
Try {{this.['Fuel Products'] | replace: ",", checkMark}}
and let us know if that works.
Thanks,
M
Copy link to clipboard
Copied
Hello there,
Try {{this.['Fuel Products'] | replace: ",", checkMark}}
and let us know if that works.
Thanks,
M
Copy link to clipboard
Copied
Yeah once you're inside liquid such as {{ }} or {% %} you don't need to nest {{ }} or {% %} again in order to reference another variable - as mstoichi explained.
Copy link to clipboard
Copied
Thanks mstoichi! Appreciate the advice. Works Perfectly!
