Skip to content

Instantly share code, notes, and snippets.

@marketinview
Last active October 23, 2022 16:55
Show Gist options
  • Save marketinview/2fdfd460c79850c40d10 to your computer and use it in GitHub Desktop.
Save marketinview/2fdfd460c79850c40d10 to your computer and use it in GitHub Desktop.
Qualtrics: Limit Characters in a Multiple Choice Text Entry Box. Unlike a text entry question, an "allow text entry" box that is part of a multiple choice question does not have a built-in option to limit the number of characters in the response. The following script adds that functionality by adding the maxlength attribute to the html <input> t…
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId+" .InputText").attr("maxlength", "100");
});
@marketinview
Copy link
Author

marketinview commented Nov 14, 2017

See additional Qualtrics solutions at: https://qualtricswiki.tgibbons.com/doku.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment