Can we add hyperlink in tooltip.

Certified Associate Developer

Hi All,

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

  Discussion posts and replies are publicly visible

  • 0
    Certified Senior Developer

    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

  • 0
    Certified Lead Developer

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

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