Hello! I'm trying to set up a workflow that enters a row in Excel.
I have a Matrix Likert table and I want to split the results up by a line break instead of a comma. I'm not even sure where to begin. My rudimentary research led me to put the following code in Javascript:
var sampleString = "${q://QID13/ChoiceGroup/SelectedChoicesForAnswer/1}";
var comma = ", ";
var sampleArray = sampleString.split(comma);
var sampleOne = sampleArray[0];
Qualtrics.SurveyEngine.addEmbeddedData ("sampleOne", sampleOne);
alert(sampleOne);
but I suspect I need to put an Embedded Data block in the survey flow, but I'm not sure what variables and how to pull the information from my code... My alert box also shows up as a blank so I'm assuming my code is wrong too, anyways.
Thank you in advance for your consideration in helping!
Matrix Likert Table Script
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

and someone selects "Scale Point 1" for "Statement 1", "Statement 2", and "Statement 3" I would want the workflow to give me a row in Excel that looks like this:

