Include html in a text formula

  • 1
  • Question
  • Updated 1 month 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

  • 10,090 Points 10k badge 2x thumb

Posted 9 months ago

  • 1
Photo of Jack Sanford

Jack Sanford, Champion

  • 10,090 Points 10k 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 Jack Sanford

Jack Sanford, Champion

  • 10,090 Points 10k badge 2x thumb
correcting typo in the above, missed the closing ">"

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

Mike Dwyer, Champion

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

Luzie Baumgart, Official Rep

  • 4,030 Points 4k badge 2x thumb
Thanks for Sharing, Jack!