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

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!

@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!


@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

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.


@Deepak 

Publishing didn't work.


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


@Deepak 

 


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.


Leave a Reply