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
.LanguageSelectorContainer, span.langCode { display:none; } |
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 clh = jQuery("#"+this.questionId+" tr.ColumnLabelHeader"); | |
clh.find("td:first").html("Statement A"); | |
clh.append("<td class='yAxisBorder'></td><td>Statement B</td>"); | |
}); |
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() { | |
jQuery("#"+this.questionId+" label.SingleAnswer > span").each(function(i) { | |
Qualtrics.SurveyEngine.setEmbeddedData("item"+(i+1),jQuery(this).html()); | |
}); | |
this.clickNextButton(); | |
}); |
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 row = jQuery("#"+this.questionId+" tr"); | |
var cells = row.find("td"); | |
if(cells.css("display") == "block") cells.each(function(i) { if(i > 0) row.prepend(jQuery(this)); }); | |
}); |
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 maxWords = 0; //update as needed, 0=no limit | |
var q = jQuery("#"+this.questionId); | |
var input = q.find(".InputText"); | |
input.after("<div style='font-size:0.8em;float:right'>Word count: <span class='wordCount'>0</span><span class='maxWords'></span></div>"); | |
var display = q.find(".wordCount"); | |
if(maxWords > 0) q.find('.maxWords').text("/"+maxWords); | |
countWords(input.get(0)); | |
input.on("input", function() { countWords(this) }); | |
input.blur(function() { this.value = this.value.trim(); }); |
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
<script> | |
Qualtrics.SurveyEngine.addOnReady(function() { | |
jQuery("#Plug a").attr("href", "javascript:void(0)"); | |
jQuery("#Plug a").click(function(e) { e.preventDefault(); }); | |
setTimeout(function() { window.scrollTo(0,0); },200); | |
}); | |
</script> |
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() { | |
jQuery("#"+this.questionId+" .TextEntryBox").each(function() { | |
var tb = jQuery(this); | |
tb.css({"float":"none","background-color":"white","width":"100%"}); | |
tb.prev("label").css("display","block").append(" ").append(tb); | |
}); | |
}); |
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() { | |
if(jQuery("#"+this.questionId+" .QuestionBody.mobile").length > 0) { | |
jQuery("#"+this.questionId+" tr.ChoiceRow").each(function() { | |
var label = jQuery(this).find("th"); | |
jQuery(this).find("td").each(function(index) { | |
var choice = jQuery(this); | |
if(index > 0) { | |
label.after(choice); | |
if(choice.hasClass("last")) choice.removeClass("last"); | |
} |
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() { | |
jQuery("#"+this.questionId+" td:not(.ControlContainer)").hide(); | |
}); |
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.addOnReady(function() { | |
var qobj = this; | |
var displayedChoices = []; | |
jQuery.each(qobj.getChoices(), function(index, value) { | |
if(qobj.getChoiceDisplayed(value)) displayedChoices.push(value); | |
}); | |
if(displayedChoices.length == 1) { | |
qobj.setChoiceValue(displayedChoices[0], true); | |
qobj.clickNextButton(); | |
} |