Skip to main content
Known Participant
Jul 14, 2023 8:08 AM UTC
Question

Can we add hyperlink in tooltip.

Hi All,

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

    3 replies

    shikhat
    Inspiring
    Jul 14, 2023 8:16 AM UTC

    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
    Jul 14, 2023 8:30 AM UTC

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

    Known Participant
    Jul 14, 2023 1:45 PM UTC

    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
        )
      }
    )