Include html in a text formula

  • 1
  • Question
  • Updated 7 months ago
  • Answered
Trying to figure out how to include html like <br> or styling in a UI formula field returning text. 

Example: {{fieldname}}+"some other text"+"<br>"+{{fieldname}} doesn't work
Photo of Jack Sanford

Jack Sanford, Champion

  • 9,726 Points 5k badge 2x thumb

Posted 7 months ago

  • 1
Photo of Jack Sanford

Jack Sanford, Champion

  • 9,726 Points 5k badge 2x thumb
Here's how in case anyone else has this issue, use <html></html> tags around your html inside the quotes. 

Example: "<html><b></html>"+{{fieldname}}+"<html></b><br></html"+{{fieldname}}
Photo of Mike Dwyer

Mike Dwyer, Champion

  • 4,716 Points 4k badge 2x thumb
Sweet! I like the intuitive nature of that.
Photo of Luzie Baumgart

Luzie Baumgart, Official Rep

  • 3,508 Points 3k badge 2x thumb
Thanks for Sharing, Jack!