Hide radio buttons in Side by Side question with carry forward statements | XM Community
Skip to main content
Question

Hide radio buttons in Side by Side question with carry forward statements

  • May 29, 2023
  • 7 replies
  • 80 views

Forum|alt.badge.img+2

I have a side-by-side question (Question ID 47), in which I have ten carried forward statements from a previous question (Question ID 12). In the columns, I have four columns, with three options as radio buttons (Yes/No/Don't know).

I want to hide the radio buttons only in the first three columns and the 7th and 8th statement (if these two are carried forward), as follows:

 

How can I do this?

 

Many thanks!

7 replies

Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • May 29, 2023

@BerkayA

You can write JS onready on the carry forward question. Extend this code, by changing the c4,c9,c14 value and eq value as required.

jQuery('#'+this.questionId).find('.SBS1.c4').eq(7).css("visibility","hidden");
jQuery('#'+this.questionId).find('.SBS2.c9').eq(7).css("visibility","hidden");
jQuery('#'+this.questionId).find('.SBS3.c14').eq(7).css("visibility","hidden");

Hope it helps!


Forum|alt.badge.img+2
  • Author
  • Level 2 ●●
  • May 29, 2023

@Deepak 

Appreciate the quick reply! 

It works when I preview the question, but it does not seem to work when I preview the whole survey…

Do you know what could have gone wrong?


Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • May 29, 2023

@Deepak

Appreciate the quick reply! 

It works when I preview the question, but it does not seem to work when I preview the whole survey…

Do you know what could have gone wrong?

Try publishing the survey it should work.


Forum|alt.badge.img+2
  • Author
  • Level 2 ●●
  • May 30, 2023

@Deepak 

Publishing didn't work.


Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • May 30, 2023

@BerkayA Can you share a screenshot of how you have included it in your survey?


Forum|alt.badge.img+2
  • Author
  • Level 2 ●●
  • May 30, 2023

@Deepak 

 


Forum|alt.badge.img+2
  • Author
  • Level 2 ●●
  • May 30, 2023

So now I can see it when I do “preview question”, but when I preview the survey or somebody else tests the survey the radio buttons appear.