How can I render HTML stored in a custom label?

  • 1
  • Question
  • Updated 4 years ago
  • Answered
I have a chunk of text that I need to display on a page. This text contains an HTML link. I've created the custom label in SF, the label in Skuid, and added a template region to display the label. The label displays on the page, but it shows the HTML as text. I have the allow HTML checkbox checked.

Is this possible? Is there a better way to do it?
Photo of Or Cingilli

Or Cingilli

  • 104 Points 100 badge 2x thumb

Posted 4 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
I'd reccomend using our Template component, where you can write the HTML directly,  Rather than in the custom label.   If it is a static link - that's really easy.  If it needs to be dynamic (either the text of the Link  or the destination of the URL) you can use our merge syntax to include fields in your template so the text and the link destination are what you expect.