Javascript to replace text with uppercase as respondent is typing? | XM Community
Skip to main content
Question

Javascript to replace text with uppercase as respondent is typing?

  • November 13, 2023
  • 0 replies
  • 80 views

Forum|alt.badge.img+1

I copied a survey and used the same javascript that works in the first survey to turn the text to uppercase as a respondent was typing, but in the second survey it is not working. Here is the code I put in the OnReady section of the javascript:

 

    jQuery("#"+this.questionId+" .InputText").on("input", function() { this.value = this.value.toUpperCase(); });

 

I’m wondering if some updates to Qualtrics has changed so that I need to use a different question ID or something like that? 

0 replies

Be the first to reply!