Question Numbers are Hiding | XM Community
Skip to main content
Solved

Question Numbers are Hiding

  • September 21, 2023
  • 2 replies
  • 106 views

Forum|alt.badge.img+2

Hello XM Community! I am finishing up a project and used a small line of Java code to hide figures/numbers on my text/graphic question I am using for an “information page”. Each info page starts each block and outlines what that block will contain. However, when I put in my Java code under the:

Qualtrics.SurveyEngine.addOnload(function()
{
    jQuery('.QuestionText').find('label').css("display","none")

});

 

The numbers for the following questions (until the next page) do not appear. I have a period in the place of a question number on my text/graphic question. Any help would be great! 

 

---BH

Best answer by Nam Nguyen

@BradleyHoush Your code hide the question number for the whole page. Try this one, it will hide only that question number.

Qualtrics.SurveyEngine.addOnload(function()
{
    jQuery("#"+this.questionId+" .QuestionText").find('label').css("display","none")

});

Hope this helps

View original

2 replies

Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+29
  • QPN Level 8 ●●●●●●●●
  • 1091 replies
  • Answer
  • September 22, 2023

@BradleyHoush Your code hide the question number for the whole page. Try this one, it will hide only that question number.

Qualtrics.SurveyEngine.addOnload(function()
{
    jQuery("#"+this.questionId+" .QuestionText").find('label').css("display","none")

});

Hope this helps


Forum|alt.badge.img+2
  • Author
  • Level 2 ●●
  • 8 replies
  • September 22, 2023

@dxconnamnguyen that did the trick. Thanks so much!