Survey Design - Java Script - Qualtrics software Update - Activating Tool Tips | XM Community
Skip to main content
Solved

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

  • December 13, 2018
  • 1 reply
  • 24 views

Forum|alt.badge.img
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')");

Best answer by TomG

@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"); ```

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • December 13, 2018
@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"); ```