Dynamic Font Awesome icons based on database output

Hi there,

I have a database, that lists a number of industries, and also a Font Awesome icon name in the next column.

What I’d like to do within a repeating group is display the appropriately named FA icon in each record.

I’ve tried a few ways now, and wondered if this is possible:

  1. Using the class Toggle - I cannot change the ‘name’ in Class Toggle with a data picker / binding from the DB output
  2. Manually changing the later part of the icon name (e.g. the part after ‘fas’) with the name of the relevant field from the repeat group bindings, e.g.
  3. I’ve tried Dynamic Attributes inner text and inner html - naturally inner text wasn’t going to work, I was optimistic about inner html and used both and tags to reference the FA icon.

As a last resort, I can download the icons themselves and display them that way with a URL, but as we are already using the CDN - this would be a more ideal solution.

Any ideas?

Community Page
Last updated: