With a Likert, Single answer matrix question, I have limited the user to only having a maximum of 15 choices in the first column. This is done by Custom Validation.
To assist the user, I want to show them how many they have already selected from that column only.
I have found various JS tools that work for single answer questions and can adapt those to show me the "total selected", but I can't find a simple way to only count the selections from the first column!
Thank you all.
This is the sample code found on this site, (sorry can't find original post now), for simple question types:
Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/
});
Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/
var QID = this.questionId ;
jQuery("#" + QID + " input[type='checkbox']").on("click", function() {
var number = 0;
jQuery("#" + QID + " input[type='checkbox']:checked").each(function(){
number=number + 1;
});
jQuery('#chkcount').text(number);
});
});
Qualtrics.SurveyEngine.addOnUnload(function()
{
/*Place your JavaScript here to run when the page is unloaded*/
});
Question
How to display choice count dynamically in question text for likert, single answer question type
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
