Howdy folks
I have a text entry box that uses multiple lines. Later in my survey I have another text entry box that I need the input text from time 1 to be copied into and be able to edit the text.
At the end of Q1 new embedded data is created ${e://Field/SomeText} in JS and surveyflow.
I have used the following JS code on Q2, but if Q1 textbox has mutli lines typed into it then Q2 textbox will not display anything
Qualtrics.SurveyEngine.addOnload(function()
{var answer = "${e://Field/SomeText}";
jQuery("#"+this.questionId+" .InputText").val(answer); //Adds text to box, but only on single line});
My question, how can I copy the text input into textbox 1 that will be multiple lines and then set this text to be included into textbox 2?
Thanks
Stew
Best answer by cbhavsar
View original