Skip to main content
June 26, 2024
Solved

Link to display a text when we hover on it

  • June 26, 2024
  • 5 replies
  • 0 views

Hi team,

I have a text to display as "Completed with Justification" and it should display as a link and on hovering over on the link, the comments saved in justification field should display. 

Can someone help me how to achieve this. I tried as below but it didnt work.

a!richTextDisplayField(
              value: a!richTextItem(
                text: "PLL Completed with Justification",
                link: a!safeLink(
                  label: "PLL Completed with Justification",
                  uri: ri!RGRACSLBL_LabelChangeCountry['recordType!{d1de8e89-4208-44d3-bb27-0306902c0671}RGRACSLBL Label Change Country.fields.{7ac1eaa1-1093-44b1-a996-7f1610dcc510}justificationForClosure']
                ),
                style: "STRONG",
                size: "STANDARD"
              )
            ),

    Best answer by yogip3177

    Have you checked the tooltip attribute of richTextDisplayField?

    a!richTextDisplayField(  
      value: a!richTextItem(
        text: "Link Label",
        link: a!safeLink(uri: "http://www.google.com"),
        size: "STANDARD",
        style: "STRONG"
      ),
      tooltip: "This is help tooltip",
    )

    5 replies

    yogip3177Answer
    June 26, 2024

    Have you checked the tooltip attribute of richTextDisplayField?

    a!richTextDisplayField(  
      value: a!richTextItem(
        text: "Link Label",
        link: a!safeLink(uri: "http://www.google.com"),
        size: "STANDARD",
        style: "STRONG"
      ),
      tooltip: "This is help tooltip",
    )

    June 26, 2024

    Thanks [mention:c3d4bf332aba4695885fdc0e0110ec6e:e9ed411860ed4f2ba0265705b8793d05] 

    I tried this and it is giving me the exact result. but on clicking on link it is taking me to blank new tab. How can I avoid that

    sriramk5349
    June 26, 2024

    use dynamic link with no inputs, that might help.