Last active
October 23, 2022 17:00
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See additional Qualtrics solutions at: https://qualtricswiki.tgibbons.com/doku.php