Hide SubQuestion Text Side by Side Column | XM Community
Skip to main content

Hello I would like to hide the subquestion text on a side by side question. I know that this is the html that needs to be hidden with JavaScript, but not sure how to write the javascript for that:
 Click to write Column 1 
image.pngI just want the "Click to write Column 1" to not be visible.

A simple fix I had was to change the color to white in the CSS and it works, but still curious on the javascript way to do this.
.Skin .SBS td, .Skin .SBS thead th {
  text-align: center;
  color: white;
}


Another fix is to just type in a space, that's what I've been doing.


You can hide all the individual subquestions like this:
jQuery("#"+this.questionId+" .SubQuestionText").find('*').hide();
or you can hide the entire subquestion row like this:
jQuery("#"+this.questionId+" tr.Headings").hide();
The first won't impact columns widths and the second one will (but maybe for the better?). It is matter of preference.


Leave a Reply