Discussions

Expand all | Collapse all

New line code in formula rich text field

  • 1.  New line code in formula rich text field

    Posted 04-12-2018 16:26
    Hi, I'm trying to add an image thumbnail and text together on a report, and want the text to be under the image. With the formula rich text field below, the image and text show but the text is currently displaying to right of image, not below. I'm trying "\n" to force a new line after the image but it is not working. Thanks

    "<img height=\"150\" src=\"" & URLRoot() & "up/" & Dbid () & "/a/r" & [Record ID#] & "/e10/v0\" />" & "\n" & [My Text Field]


  • 2.  RE: New line code in formula rich text field

    Posted 04-12-2018 16:29
    replace the "\n" with "<br>"

    The \n works on a regular formula text field but for Rich Text you need to use the HTML equivalent. 

    <br> means break to a new line.


  • 3.  RE: New line code in formula rich text field

    Posted 04-12-2018 16:32
    Thanks for such a quick response. Your solution worked.