Form Field - Hide Column | XM Community
Skip to main content
Solved

Form Field - Hide Column

  • June 27, 2022
  • 2 replies
  • 322 views

Forum|alt.badge.img+5

Hello,
I have a form field question and i would like to hide the intial column.
I am using the below code to try to hide the column but the entire form gets hidden.
jQuery("#"+this.questionId+" .td").css("display","none");
I would like to hide the highlighted section so the text box will be left aligned.

Any help on this is much appreciated.

"Note: Need is a to use a form field as this data is then setup in a workflow that gets fed into google sheets, any other format / question type doesnt seem to work for the reporting bit as they are migrating from Google forms to a qualtrics survey."

image.png

Best answer by Tom_1842

Hi there, I found a thread where TomG provides some code that will do what you're describing:
jQuery("#"+this.questionId+" td:not(.ControlContainer)").hide();

2 replies

Tom_1842
Level 8 ●●●●●●●●
Forum|alt.badge.img+28
  • Level 8 ●●●●●●●●
  • Answer
  • June 28, 2022

Hi there, I found a thread where TomG provides some code that will do what you're describing:
jQuery("#"+this.questionId+" td:not(.ControlContainer)").hide();


Forum|alt.badge.img+5

Thanks Tom_1842. It worked.