Is there a way to restrict survey responses to Latin characters? | XM Community
Skip to main content

I have a survey going out to an international audience but an analysis team located in the US and India. Is there a way to restrict the text responses to Latin characters only, i.e. accents are fine, but not kanji or hangul?

Hello Charlie_DM Unfortunately we cannot validate or limit text directly within Qualtrics, but we can use a JS regex code to restrict special characters

$(document).ready(function() {
$('#Demo').bind('keyup blur', function() {
if($(this).val().match(/[^A-Za-z ]/g)){
// Pop alert
alert('Invalid Character usage. Please Use English characters only.');
//Replace all the invalid characters with empty string
$(this).val($(this).val().replace(/[^A-Za-z ]/g, ''))
return false;
}
});
});


Hi Aanurag_QC
In addition to that, is there a way to stop respondents from inputting certain phrases or words into the Text Entry box.
For example, how do I stop respondents from entering words such as "vulgar" into the Text Entry box.
Is there a functionality or Javascript in Qualtrics that can do that?
Kind regarads,
Peatuhacs


Leave a Reply