Removing question text | XM Community
Skip to main content

I'd like to hide the question text for a question in my survey. Is there code that will allow me to do this? I've read this thread: https://community.qualtrics.com/XMcommunity/discussion/2256/hiding-question-text, but when I add the code to rich content editor HTML view, the question still appears when I preview the study. This problem was brought up in the above thread but never answered. Thanks

Is there a specific purpose you are trying to hide text? There may be a more appropriate solution depending on the need.


ColbyA thanks for your reply.
1.pngThis is what the preview looks like. I'm creating a table which will include 6 x 10 images, which participants will include a rating for in the answer boxes under each image. I've done this by using two 'matrix table' questions (see below). I only need to ask the question once: all the images should be rated whilst considering the other images. If I ask the question in each matrix table, people may only compare the images to the ones next to it, rather than the whole 6 x 10 set. An easier way to do it would be to include multiple 'text entry' boxes within the same question and just put them in a table, but I'm not sure if I can do that
Thanks!
image.png


Just put your whole question in a span tag and in onReady hide it as below:
jQuery('.example').css('display','none')


grahulp5 Thanks for your reply, I was just wondering what onReady is and where I can find it? Sorry, I'm new to Qualtrics, thanks


Nevermind, I figured out how to do it. For anyone who finds this question, I used this code:
Qualtrics.SurveyEngine.addOnload(function() { jQuery("#"+this.questionId).find(".QuestionText:first").parent().hide(); jQuery("#"+this.questionId+" .QuestionText:first").parent().hide();}); 
}); 
From this link: https://gist.github.com/marketinview/00c6b7790bec6c8178bf/revisions (the top revision). I added it by right clicking on the question box (not question name) and clicking ' add Javascript', then adding it to the 'addOnload' (top) section
Although the below screenshot still shows the question text 'Click to write the question text', when the study is previewed this no longer appears.
Thanks for your suggestions everyone!
image.pngimage.png


Entering a space works too.


Leave a Reply