Force color of selected multiple choice question | XM Community
Question

Force color of selected multiple choice question

  • 30 June 2020
  • 1 reply
  • 56 views

Badge

Hi there!
I like the formatting of the MC questions better than forms and so am using a text entry option with a MC question.
However, I would like to keep the color of the checked MC items grey instead of changing to my alternate color.
Is there a way using jQuery to stop the color from changing when a choice is selected? This would only be for a few questions, do don't want to use CSS style sheet.
Thanks!


1 reply

Userlevel 5
Badge +4

Try the below code at for the respected question. You can change the background to other color as well.
Qualtrics.SurveyEngine.addOnReady(function()
{
  this.questionclick = function(event,element)
  {
 jQuery('.Skin label.MultipleAnswer.q-checked, .Skin label.MultipleAnswer.q-checked.q-focused, .Skin label.SingleAnswer.q-checked, .Skin label.SingleAnswer.q-checked.q-focused').attr('style','background:none !important')
  }
});

Leave a Reply