I have tried all sorts of regex javascript etc. It seems to break with line breaks\\newlines ("\\n") and quotes (single and double).
Page 1 / 1
I was able to put some regex and replace functions together to make it work.
Qualtrics.SurveyEngine.addOnPageSubmit(function()
{
var input = jQuery("#"+this.questionId+" .InputText");
input.val(input.val().replaceAll('"',""));
input.val(input.val().replace(/(\\r\\n|\\n|\\r)/gm, " "));
});
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.