Set embedded data and loop and merge

Teza
Teza BelgiumCommunity Member Qubie ✭
edited July 22 in Custom Code

Hi guys,

I have a problem with embedded data and loop and merge on the Stroop test.

when the respondent answering the survey I can see that the immediate feedback during the test is working correctly but when I receive the final feedback, it mentioned for every question that they are correct although not all of them are correct. I'll put my loop and merge picture plus the codes for the feedback part here.


Please help me I am really stuck in a bad situation.



Answers

  • rondev
    rondev Community Member Wizard ✭✭✭✭✭

    You need to create same number of embedded data as the number of loops. Then you can in JS create an array with all embedded data names. Based on loop number piping you can call the respective embedded data from the array and set its value.