How do I hide a statement in a matrix table where the statements have been carried forward? | XM Community
Skip to main content
Solved

How do I hide a statement in a matrix table where the statements have been carried forward?

  • March 28, 2019
  • 5 replies
  • 302 views

Forum|alt.badge.img+1
I have carried forward a list of randomized statements which include "none of the above" to a following question. As the respondent is rating the carried forward statements on a scale, it doesn't make sense to include "none of the above". I can't figure out how to remove or hide it. ! !

Best answer by TomG

Since "None of the above" is exclusive, use question display logic to only show the follow-up question if "None of the above" is not selected. If you want to show the questions whether they select "None of above" or not, you can hide it with JS (I'm assuming that is a matrix question in your picture): ``` Qualtrics.SurveyEngine.addOnload(function() { jQuery("#"+this.questionId+" tr:last").hide(); }); ```

5 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • Answer
  • March 28, 2019
Since "None of the above" is exclusive, use question display logic to only show the follow-up question if "None of the above" is not selected. If you want to show the questions whether they select "None of above" or not, you can hide it with JS (I'm assuming that is a matrix question in your picture): ``` Qualtrics.SurveyEngine.addOnload(function() { jQuery("#"+this.questionId+" tr:last").hide(); }); ```

Forum|alt.badge.img+1
  • Author
  • 5 replies
  • March 28, 2019
Do I need to replace anything in JS you included? Other than questionId? jQuery("#"+this.QID101+"tr:last").hide();

Forum|alt.badge.img+1
  • Author
  • 5 replies
  • March 28, 2019
And do I paste it under ".addONload(function()"? Obviously I'm very new to this....

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • March 29, 2019
> @elassit206 said: > Do I need to replace anything in JS you included? Other than questionId? > > jQuery("#"+this.QID101+"tr:last").hide(); Don't change anything, including this.questionId. this.questionId is a variable that contains the current question id (e.g., QID101). > @elassit206 said: > And do I paste it under ".addONload(function()"? > > Obviously I'm very new to this.... The cost I posted includes addOnload. Copy what I posted and replace everything that is there.

Forum|alt.badge.img+1
  • Author
  • 5 replies
  • March 29, 2019
Awesome! Thank you!!