addTooltip doesn't show up in conditional statement on the server side

I have three filters in my shiny app. Based on the selection of the filter 1, I want to show two different tooltips. If the user chooses A, I want to show message 1, if the user is choosing B, I want to show message 2. I have to use addTooltip on the server side to make sure I can grab the input value from the user but the tooltip doesn't show up.

    ifelse(filtered_data()$selection1=="A",addTooltip(session, "id", "message 1", placement = "bottom", trigger = "hover", options = NULL),
         addTooltip(session, "id", "message 2", placement = "bottom", trigger = "hover", options = NULL))

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.