URL of experiment: Rachel Moy / selfaffirm · GitLab
Description of the problem: I built my reaction time based experiment in Psychopy builder, but had to add the following manual code in the Python script to only move onto the next prompt upon user’s correct keyboard input (as users have to click either “p” or “q” on the keyboard each time):
if key_resp.corr:
continueRoutine = False
However I learned that when my experiment is pushed online through Pavlovia, my manual Python code isn’t reflected. I’ve tried editing the JS code in Psychopy coder, and manually in Pavlovia, but I can’t seem to make it work.
I’m not sure if if’s either:
- as a JS newbie I did not code it correctly hence it’s not responding, or
- What’s the best way to incorporate a manual code tweak in Pavlovia (in Psychopy or in Pavlovia directly) or
- I also read online that the “continueRoutine” command in Python may not work in JS but I’m not sure how to replace/change it so that it will work for Pavlovia.
The JS code I attempted to add in Psychopy coder and Pavlovia:
if (key_resp.corr): {
continueRoutine = False
}
Any advice would be tremendously appreciated!