Making default radio buttons that are unclickable/unchangeable | XM Community
Skip to main content
Solved

Making default radio buttons that are unclickable/unchangeable

  • December 9, 2019
  • 5 replies
  • 112 views

Hi everyone, I am struggling making radio buttons with default choices that are unchangeable by the respondents. That is, I want to show respondents a matrix table with pre-selected radio buttons as "an example", so that the respondents can only see the default choices but cannot change them. I remember I saw some surveys that had grey default radio button choices I could not change... Is there any way I can do this in Qualtrics? Thank you so much!

Best answer by TomG

This should do it: ``` Qualtrics.SurveyEngine.addOnload(function() { jQuery("#"+this.questionId+" input[type=radio]:not(:checked)").prop("disabled", true); }); ```

5 replies

ClairJ
Level 4 ●●●●
Forum|alt.badge.img+15
  • Level 4 ●●●●
  • December 9, 2019
Hi @StudentA why not create this in a survey preview and grab a screenshot? You can then just insert the image.

  • Author
  • December 9, 2019
@ClairJ Right! Actually, that is the way I have done it. I was curious if I could make it look little more formal by having those grey buttons... Thank you for your answer! 😀

ClairJ
Level 4 ●●●●
Forum|alt.badge.img+15
  • Level 4 ●●●●
  • December 10, 2019
I see. I hope someone chimes in then! I imagine this is do-able, but coding is not my forte.

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • December 11, 2019
This should do it: ``` Qualtrics.SurveyEngine.addOnload(function() { jQuery("#"+this.questionId+" input[type=radio]:not(:checked)").prop("disabled", true); }); ```

  • Author
  • December 11, 2019
@TomG Thank you so much for the code! This works prefect. I have also received so much help from your other answers, so thank you for those as well!! :)