Concatenating string to get QuestionID | XM Community
Skip to main content

Hi Community!
I'm doing some calculations after a Loop&Merge, using the questions from the loop.
When referring to the questions like this, it works:
 

perf = "${q://x3_QID14/SelectedChoicesRecode}";

This provides me with the answer for QID14 in the loop for "company" #3 (=loopID 3).
My problem is that I would like to nest this statement in a for-loop (iterating over i). So something like:
perf = "${q://x" + i + "_QID14/SelectedChoicesRecode}";

This line unfortunately doesn't return anything.
What am I doing wrong? Is there a way to solve this?

Thanks!
Manfred

Based on the response below from TomG, it doesn't look like what you're trying is possible. I ran into the same issue previously.
image.pnghttps://community.qualtrics.com/XMcommunity/discussion/1564/dynamically-construct-embedded-data-field-name-with-loop-and-merge-index


Thanks a lot, mmoore !


Leave a Reply