Survey Design - Java Script - Qualtrics software Update - Activating Tool Tips | XM Community
Solved

Survey Design - Java Script - Qualtrics software Update - Activating Tool Tips

  • 13 December 2018
  • 1 reply
  • 8 views

Badge
Before Qualtrics update in September, we used to have tooltip information which does not seem to be functioning anymore. Would anyone know how to update this coding?

Qualtrics.SurveyEngine.addOnload(function()
{
var a = document.getElementById("QR~QID135");
document.getElementById("QR~QID135").setAttribute("onFocus","javascript:revealToolTip('QID135','tooltip12')");
document.getElementById("QR~QID135").setAttribute("onBlur","javascript:hideToolTip('tooltip12')");
icon

Best answer by TomG 13 December 2018, 15:33

View original

1 reply

Userlevel 7
Badge +27
@GCosta,

You'll need to post the code for the revealToolTip and hideToolTip functions. Post code in 'fences' like this.
\\`\\`\\`
post code here
\\`\\`\\`

Also, it's generally not a good idea to hard code QIDs. Use this.questionId instead:
```
var a = document.getElementById("QR~"+this.questionId");
```

Leave a Reply