Rich text in formulas, lookups and rollups
  • 27 Jun 2022
  • 1 Minute to read
  • Dark
    Light

Rich text in formulas, lookups and rollups

  • Dark
    Light

Formulas, lookups, and rollups of long text fields with rich text enabled will use the field’s plain text plus the characters automatically added for lists. We do not currently support rich text formatting in formula, lookup, and rollup field.

360060178274mceclip0.png

In this example, the notes for an issue are in rich text.

360063539873mceclip0.png

When those notes are used in a rollup field, the plain text representation is shown.

360063539993mceclip1.png

NOTE

Hyperlinks in a long text field will not display if they are brought over as text values from a rollup, lookup, or formula field.

Formulas

Counting the number of checked items in rich text

Because checkboxes are converted to “[ ]” for unchecked and “[x]” for checked, a formula can be used to count the number of times these characters occur.

Unchecked items: (LEN({Content})-LEN(SUBSTITUTE({Content},"[ ]","")))/3
Checked items: (LEN({Content})-LEN(SUBSTITUTE({Content},"[x]","")))/3

Using the above formula fields, the percent of checkboxes checked can be calculated with the following formula:

IF({Unchecked items}+{Checked items}=0,BLANK(),IF({Checked items}>0,{Checked items}/({Unchecked items}+{Checked items}),0))

  • If no checkboxes in the rich text, returns blank.
  • If no checked checkboxes in rich text but there are checkboxes, returns 0.

Line breaks and list styles are included in formulas that count characters

Similar to long text, line breaks are included for LEN(), RIGHT(), and LEFT() function. The plain text for lists also add to the number of characters counted.

360062651954mceclip3.png


Was this article helpful?