Skip to content

Commit 0c62eec

Browse files
Merge pull request #2 from TracyRad/Qualtrics-DataExport
Update fsc-c.js with a suggested code block for saving all embedded data when multiple measures of self-continuity are present on a single page.
2 parents d391b49 + ba613d8 commit 0c62eec

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

fsc-c.js

+12-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,20 @@ jQuery(function($) {
3030
// Uncomment the following 2 lines to display current numbers on screen, given that the page includes two div elements with ids 'left' and 'percent'.
3131
// $('#left').text(leftPos);
3232
// $('#percent').text(overlapPercentage + '%');
33-
// Qualtrics only: Uncomment the following 2 lines to store the values as Qualtrics embeddedData.
34-
// Notice that these embedded data has to be added explicitly in the survey flow in order for them to show up in your data exports.
33+
34+
// Qualtrics only: Uncomment the following 2 lines to store the values as Qualtrics embeddedData
35+
// Notice that these embedded data has to be added explicitly in the survey flow in order for them to show up in your data exports.
3536
// Qualtrics.SurveyEngine.setEmbeddedData(id + "-distance", leftPos);
3637
// Qualtrics.SurveyEngine.setEmbeddedData(id + "-overlap", overlapPercentage);
38+
39+
// Qualtrics only: Uncomment the following lines into the survey flow when using multiple measures of self-continuity to send multiple data
40+
// Otherwise each measure will be sent through same embedded data code and overwritten
41+
// Object.entries(circlesData).forEach(([columnId, value]) => {
42+
// console.log("we want to send ", value, " to id ", columnId)
43+
// Qualtrics.SurveyEngine.setEmbeddedData(columnId, value);
44+
//})
45+
46+
3747
}
3848
});
3949
});

0 commit comments

Comments
 (0)