Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Hide Radio Button

Hi,

I want to hide a radio button based on the option selected in the previous question. For Example, if option 'Apple' is selected in Q1 then it should be shown in Q2, it should be hidden otherwise. NOT constructed list PLEASE.

Please help!
asked Apr 13, 2015 by Abdul Bronze (2,630 points)

1 Answer

+1 vote
Hi,

You should write the code individually for all options. I am writing for first one.

<script type="text/javascript">
 
 if ([%Q1_1%] == 0)
 {
 document.getElementById("Q2_1_graphical").visibility = 'hidden';
 document.getElementById("Q2_1_graphical").disabled = 'true';
 document.getElementById("Q2_1_graphical").className = 'HideElement';
 }
 </script>
answered Apr 13, 2015 by Rajesh Rana Gold (24,770 points)
...