Is it possible to only show answers if the mouse is hovering over them? | XM Community
Skip to main content

Hi there,
I was wondering if it is possible to have a series of say 4 questions in Qualtrics, each with a few possible answers. With those answers, I wanted to keep them hidden unless the mouse was hovering over them and timing how long they’d spent considering each answer. 
Is there anyone who has done something similar to this in Qualtrics and can offer any advice, please?

barrye5
I am presuming a few things here:

  1. Question type: Multiple choice-multiple answers

  2. Need: To show that this can be a possible answer when hovering on the option

You can use the below code and manipulate the duration as needed, currently its 1 second after hover.
Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/
 jQuery('#QID17-1-label').tooltip({
    show: { effect: 'slideDown', delay: 1000, duration: 250 }
  });

jQuery('#QID17-3-label').tooltip({
    show: { effect: 'slideDown', delay: 1000, duration: 250 }
  });
});


Include the HTML of each question option choice with the relevant title that needs to be shown on hover.

TEST


Include the below in the source of the header within Look and Feel.



Preview of how it would look:
image.png
Hope it helps!


Leave a Reply