I am having trouble capturing data that is generated and defined within each iteration of a Loop & Merge block in Qualtrics and getting it to appear in my exported survey results.
Here's my setup:
- I have a Loop & Merge block that iterates multiple times (up to 40).
- Within each iteration, I am using JavaScript to generate and set the values of several variables (e.g.,
condition
,rand
,exemplarNumber
, etc.) as Embedded Data fields.
My goal is to have the values of these variables for each iteration included in the exported data, ideally as separate columns or in a structured format.
Here are the methods I have already tried without success:
- Defining fields in the Loop & Merge settings and trying to populate them (I couldn't get these to print in the export).
- Using hidden Text Entry questions within the loop to store the values (this didn't work as expected).
- Concatenating the values into a single Embedded Data field (this is hard to analyze).
- Trying to use Qualtrics validation to capture the data (this doesn't seem to be the right tool).
- Using JavaScript within the loop to create a JSON object of the iteration data and save it to a single Embedded Data field (this also did not work for me).
The variables are being generated and set as Embedded Data within each iteration. I need a reliable way to get these values into my exported data for each iteration.
Any help or suggestions would be greatly appreciated.
Thank you.