0

create formatted content for a rich text field

I would like to programmatically create a formatted text (e.g. using tabs, line feed/returns etc.) which includes data from fields and store that text in a rich text field.

That way I am hoping to create a work-around for the limitations of the print layout.

How can I do that (copy-paste of a tab in to concatenation of strings like below does not work):

textvalue := field1 + "    " + field2 ...

 

Thanks

1 reply

null
    • Sean
    • 5 yrs ago
    • Reported - view

    You can use the fn key + Space, Tab or Return in a formula in Print Layout and it will work.

     

    To assign formatted text to a Rich Text field you'll have to use the html() function. From what I have read you have to simulate a tab with 4   like...

     

    'Rich text' := html("This is    a test")

     

    For a return you would use <br> inside html().

Content aside

  • 5 yrs agoLast active
  • 1Replies
  • 1597Views