Changing colour of one button in multiple choice question | XM Community
Skip to main content

Hello,
I am looking to change the background colour (ex. light gray) to just one button on a multiple choice question (ex. "N/A" option). Does anyone have any pointers on how to do this? Thank you!
multiple choice button colour.jpg

hi, you could try this:

Qualtrics.SurveyEngine.addOnload(function()
{
let labels = document.getElementsByClassName('LabelContainer') //get the label elements of the questions

labels[labels.length-1].style.backgroundColor='#efefef' //set the background color of the last element




});

Best regards

Rudi


Leave a Reply