It is possible to limit the size of text box by setting “maxlength” attribute of input text box JavaScript is used for this purpose to be precise it is jQuery script.
jQuery can be inserted for each question by clicking gear shape icon. It will give you the option for “Add JavaScript”.
The code below will limit the text box size to 10.
jQuery("#"+this.questionId+" .InputText").each(function () {
jQuery(this).attr('maxlength','10');
});
There also is another place you can add JavaScript for a whole survey. Structure wise, one Survey is handled as one web page for Qualtrics. You can navigate from your survey to “Look & Feel”. Then, click “edit” under “Header”. It will bring you editor windows. You have to click source icon “<>” to add JavaScript here.