Skip to main content
aminw4267
Known Participant
Dec 23, 2024 9:11 PM UTC
Question

Request: Simple tooltip formatting bold

Would be nice if tooltips could have bold text! Pretty basic but useful feature. Makes it easier to scan and read important stuff in the tooltips.

5 replies

ranjiths050336
Inspiring
Dec 24, 2024 4:44 AM UTC

Hi [mention:a3a85602ab3e4915b49a25705271b1df:e9ed411860ed4f2ba0265705b8793d05] ,

It is not possible out of the box.

There is some workaround for this you can construct the tooltip text with unicode. we are using this in our project, and it is working fine. 

source Stefan's Blog: https://appian.rocks/2023/04/17/formatting-labels-in-appian/ 

sample:

/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/Screenshot-2024_2D00_12_2D00_24-at-10.09.12_2F20_AM.png

stefanhelzle0001
Brainy
Dec 24, 2024 9:35 AM UTC

Thanks a lot [mention:b519245be9e647379f99784e26478c7d:e9ed411860ed4f2ba0265705b8793d05] :-)

mikes0011
Brainy
Dec 24, 2024 5:37 PM UTC

My request is for tooltips / captions / mouseovers in general, be upgraded to accept the "a!richTextItem()" object instead of plaintext, though with some obvious caveats (probably can't support links or images, some things dumbed down perhaps, size limits - but otherwise, why not show the rich text item contents as-is?).

The Expression Guru
aminw4267
aminw4267Author
Known Participant
Jan 28, 2025 4:28 AM UTC

Yes, please!

Participating Frequently
Jan 28, 2025 6:15 AM UTC

Hi [mention:a3a85602ab3e4915b49a25705271b1df:e9ed411860ed4f2ba0265705b8793d05] 

Can you try this logic may be it help.

a!localVariables(
    local!lRange: 120302 - 97,
    local!uRange: 120276 - 65,
    a!textField(
      label: "Phone Number",
      helpTooltip: joinarray(
        char(
          a!forEach(
            items: code("Bold Text for ToolTips"),
            expression: a!match(
              value: fv!item,
              whenTrue: and(fv!value > 96, fv!value < 123, ),
              then: fv!value + local!lRange,
              whenTrue: and(fv!value > 64, fv!value < 91, ),
              then: fv!value + local!uRange,
              default: fv!value
            )
          )
        ),
        ""
      )
    )
  )