Tooltip + Multiple Choice Questions | XM Community
Skip to main content

Tooltip + Multiple Choice Questions

  • February 25, 2023
  • 1 reply
  • 236 views

Forum|alt.badge.img+1

Hello Community!
I have a multiple choice question, and within the answer choices I've created tooltip 'buttons' to where you click them it will display the text (see attached image), with subsequent bulleted list, with this code: But as soon as you add the code to the other answer choices, only the last choice is displayed for ALL answer tooltip buttons.
I add the code directly to the answer choice -- do I need to add something to the main question javascript section? Just weird that only the last tooltip text is displayed for all 8 of the tool tips.
Thank you. TomG -- I know you are a js master.
Screen Shot 2023-02-24 at 5.32.55 PM.pngCode:
1) Evidence Generation: Built Org Capacity 
2) Or this code creates a button too... but the same issue... if you add it to subsequent answer choices (tailoring the help text) it only shows the last tooltips text.







1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • February 25, 2023

Based on how you've implemented it, the function for each choice should be unique (myFunction1, myFunction2, etc.).
BTW, an alert is different from a tooltip.