Skip to content

Instantly share code, notes, and snippets.

@marketinview
Last active October 23, 2022 17:00
Show Gist options
  • Save marketinview/cd5d385d8803124078a0 to your computer and use it in GitHub Desktop.
Save marketinview/cd5d385d8803124078a0 to your computer and use it in GitHub Desktop.
Qualtrics: Add Vertical Line Before Last Matrix Column. This script adds a vertical line to the left of the last column in a matrix question. It is useful for visually dividing an answer scale from "Not sure". #qualtrics #js #jq #matrix #na
Qualtrics.SurveyEngine.addOnload(function() {
var q = jQuery("#"+this.questionId);
var cl = q.find('td.ColumnLabels:first');
if(cl.length > 0) cl.attr('colspan', cl.attr('colspan') - 1);
if(q.find('div.desktop').length > 0) q.find('.last').css("border-left", "1px solid #BBBBBB");
});
@marketinview
Copy link
Author

marketinview commented Nov 14, 2017

See additional Qualtrics solutions at: https://qualtricswiki.tgibbons.com/doku.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment