jatos.endStudy triggers on_close function (jsPsych.init) #2070
Unanswered
EceKayaMPI
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
In my experiment, I have both on_close functions to catch data if participant decides to close the tab, and on_finish function to make sure they finished the experiment and get data. However, after the on_finish function is triggered, on_close function also gets triggered, and tries to upload the 'closed data' file. I think it happens at "jatos.endStudyAjax()" but I used that lines before and it didn't do it then. I also need to use these lines.
How can I get them triggered separately?
Thanks in advance,
Ece
Beta Was this translation helpful? Give feedback.
All reactions