Add horizontal line to group question - however, one response is not grouped | XM Community
Skip to main content
Solved

Add horizontal line to group question - however, one response is not grouped

  • June 7, 2024
  • 1 reply
  • 63 views

Forum|alt.badge.img+8

Qualtrics.SurveyEngine.addOnload(function() {
  jQuery("#"+this.questionId+" li.Selection").last().prev().css({"border-top":"2px solid #aaa","padding-top":"10px"});
});

I used this code, however it applied the line to the last group. I want the line to be above an option that is not in a group. See Image below - as you can see, Partners in Care and Volunteer are 2 groups - with contents - However, home is not in a group and I need the line to go above that, please.

 

Best answer by MaggieGentry

Figured it out:

Qualtrics.SurveyEngine.addOnload(function() {
  jQuery("#"+this.questionId+" li.Selection").last().css({"border-top":"3px solid #aaa","padding-top":"10px"});
});

1 reply

Forum|alt.badge.img+8
  • Author
  • Level 2 ●●
  • 43 replies
  • Answer
  • June 10, 2024

Figured it out:

Qualtrics.SurveyEngine.addOnload(function() {
  jQuery("#"+this.questionId+" li.Selection").last().css({"border-top":"3px solid #aaa","padding-top":"10px"});
});