Skip to content

jsPsych.endExperiment in JATOS #1411

Answered by becky-gilbert
kittymimo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Catherine,
The jatos.endStudy function will automatically redirect to their end study page, which means that any jsPsych content that you want to remain on the page will no longer be visible once that function is called. If you want to end the study in JATOS without redirecting to their end page, you can use the jatos.endStudyAjax function. Note that if you want to send the results back to JATOS before ending the study, then you should do something like example 5 in the JATOS endStudyAjax docs:

var resultats = jsPsych.data.get().csv();
jatos.submitResultData(resultats)
  .then(jatos.endStudyAjax)

I hope this helps! And if you have any JATOS-related follow-up questions, feel free to pos…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@kittymimo
Comment options

Comment options

You must be logged in to vote
1 reply
@kittymimo
Comment options

Answer selected by jodeleeuw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants