Skip to main content
July 14, 2023
Question

Can we add hyperlink in tooltip.

  • July 14, 2023
  • 3 replies
  • 0 views

Hi All,

Can we add hyperlink in tooltip?If yes can any one provide as the solution.

    3 replies

    shikhat
    July 14, 2023

    Hi , Hyperlink is tooltip is not a feasible approach , tooltip is actually visible on hover which makes it irrelevant to include hyperlink on that .
    Can you tell us what do you want to achieve?

    AFAIK we cannot have hyperlink in tooltip, We can have the URL as text only. Let's see what others suggest. 

    Thanks

    stefanhelzle0001
    Brainy
    July 14, 2023

    There are no hyperlinks in tooltips. Any solutions depend on what you want to achieve. Do you want to share that?

    July 14, 2023

    A workaround is to use a rich text icon, e.g.:

    a!localVariables(
      local!text,
      {
        a!richTextDisplayField(
          labelPosition: "COLLAPSED",
          value: {
            a!richTextItem(text: "Label", style: "STRONG"),
            " ",
            a!richTextIcon(
              icon: "question-circle",
              caption: joinarray(
                {
                  "Text to display in mouseovers.",
                  "Multiple lines possible.",
                  "  " & char(8226) & "  Bullet Point 1",
                  "  " & char(8226) & "  Bullet Point 2",
                  "Click to visit Appian.com"
                },
                char(10)
              ),
              link: a!safeLink(uri: "https://www.appian.com"),
              linkStyle: "STANDALONE",
              color: "#0000ff"
            )
          },
          marginBelow: "EVEN_LESS"
        ),
        a!textField(
          labelPosition: "COLLAPSED",
          value: local!text,
          saveInto: local!text
        )
      }
    )