What would the JS code be to add a character limit to a matrix constant sum table | XM Community
Skip to main content

Hi,
I'm trying to add a character limit to a matrix constant sum table. I'm using
Qualtrics.SurveyEngine.addOnload(function()
{
jQuery("#"+this.questionId+" .InputText").each(function () { 
  jQuery(this).on("input", function() { this.value = this.value.substr(0,15); });
});
});
But it doesnt work for Matrix tables.

Thanks
Mark

Instead of .InputText, we have to specify the td class with "input[type='text']"


Thank you rondev!


Leave a Reply