Have an idea?

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

disable radio button

I have downloaded the script to disable graphical inputs from the question library and added it to my survey, I want to disable one radio button from a grid question.

The question is called B8 and it is in row 5, column 6

Can I modify this to make it work? Do I need to do something else?


<script>
$(document).ready(function(){
    SSI_DisableGraphicalInput('Q7_1');
})
</script>
asked Mar 4 by kaitlan

1 Answer

+1 vote
You should be able to modify your code for this.  Try one of the below, depending on the orientation of your grid question.

Row-oriented:

SSI_DisableGraphicalInput('B8_r5_6');


Column-oriented:

SSI_DisableGraphicalInput('B8_c6_5');
answered Mar 5 by Zachary Platinum Sawtooth Software, Inc. (120,175 points)
It is row oriented and i put

SSI_DisableGraphicalInput('B8_r5_6');

 
 in the footer of the question and it isn't working. Am I supposed to add that somewhere else
The footer should be fine, but you may need to keep the "document.ready" stuff from your original post.

Can you double check that graphical radio buttons and checkboxes are enabled in your survey settings?

If you continue having problems, can you please open your browser's console while viewing the page / clicking on the radio button and see if any errors appear there?  The console can usually be opened by pressing F12 in your browser and navigating to a tab labelled "Console."  Errors will usually display as red text here.
...