Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Shade/colour one option in an array

  • pthwaites
  • pthwaites's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 months 4 weeks ago #243553 by pthwaites
Shade/colour one option in an array was created by pthwaites
Please help us help you and fill where relevant:
Your LimeSurvey version: 3.27.9+210726 (yes, I know - I'm trying to get my admin people to update)
Own server or LimeSurvey hosting: Own server
Survey theme/template: fruity
==================
Hello all,

I see here  that it is possible to change the colour of some sections of an array. However, this thread doesn't show how to colour a single response option in an array. In my survey, I have a "I don't understand" option at the end of a Likert scale. We're concerned about people accidentally clicking "I don't understand", mistaking it for the first item in the Likert scale. So we'd like to shade that option to distinguish it from the others (see the "Current" and "Desired" images attached). Can this be done? Can anyone write me a short piece of code (and tell me where to add it - I have no experience with the backend/code sections in LS). 

Many thanks,

Peter

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 4 weeks ago #243557 by tpartner
Replied by tpartner on topic Shade/colour one option in an array
Try placing something like this in the source of the question text.

Code:
<style type="text/css">
    #question{QID} tr >  *:nth-child(2) {
        background-color: yellow;
    }
</style>

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose