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

Hide SubQuestion Text Side by Side Column

  • August 26, 2022
  • 3 replies
  • 174 views

Forum|alt.badge.img+6

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.

3 replies

Forum|alt.badge.img+6
  • Author
  • Level 2 ●●
  • August 26, 2022

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;
}


InessaG
Level 5 ●●●●●
Forum|alt.badge.img+19
  • Level 5 ●●●●●
  • August 26, 2022

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


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • August 26, 2022

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.