Replies: 1 comment 2 replies
-
Hi Jeremy! I'm not sure what you mean about not needing the // set up jsPsych experiment
jatos.onLoad(() => {
jsPsych.run(timeline);
}); But I find it works just as well to put all of your jsPsych experiment set-up code inside the jatos.onLoad(() => {
// set up jsPsych experiment
jsPsych.run(timeline);
}); For transferring data between JATOS components, I would still use the study session data though I don't normally use the // add a variable called 'id' to the session data
jatos.studySessionData.id = id; Component 2 // get the value of the 'id' variable that was added in Component 1
var id = jatos.studySessionData.id; Does that work for you? Let us know if not and we can try to help figure it out! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
since I'm using the latest version of jspsych where from what I understand there is no need for the onload syntax with jatos,
I didn't find any example to save and retrieve data from one component to another. Using the jatos.setStudySessionData function is no longer as simple. If anyone has a clue, that would be fantastic! Thanks,
Best,
Jeremy
Beta Was this translation helpful? Give feedback.
All reactions