I have tried all sorts of regex javascript etc. It seems to break with line breaks\\newlines ("\\n") and quotes (single and double).
Solved
How do I prepare a multiline textarea to pass through Qualtrics Response API?
Best answer by pogi
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, " "));
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
