I’m working on an Implicit Association Test (IAT) project where participants respond by pressing ‘A’ or ‘L’ on the keyboard. After each response/trial, a feedback message should appear:
A “+” for correct responses
A “oops” message for incorrect responses
This works perfectly in PsychoPy using the following code:
if corr==0:
msg=“oops”
else:
msg=“+”
However, when I sync the experiment to Pavlovia, the feedback messages do not appear. I double-checked the JavaScript (JS) script, and the function is embedded, but for some reason, it still does not display during the experiment
Any guidance or troubleshooting tips would be greatly appreciated!
You have posted a link to an experiment in pilot mode. Such links will expire after 60 minutes. It is better to post a toy version of your experiment here that also shows the bug, or give access to your git repository.
By the way, did the feedback work from the beginning? If not, try running the experiment in an incognito tab.
Hello, I went back and changed it to msg = '', but it still isn’t working. It worked for one run, but in some trials, the message appeared while in others it didn’t. The function runs perfectly in PsychoPy, but when synced to Pavlovia, it doesn’t behave the same way. Sorry for the late reply btw
Thank you for the heads-up! I’m still new to Pavlovia and didn’t realize that pilot mode links expire so quickly. The feedback issue has been inconsistent from the start—it works fine in PsychoPy but behaves unpredictably on Pavlovia. Occasionally, the message appears, but most of the time, it doesn’t show anything at all.
I’ve already tried setting msg = '' at the beginning of each trial, but the issue persists. I also tested it in an incognito tab, but that didn’t resolve the problem.
I created a simplified version of the issue, and my Git repository for the experiment is available here: IAT_1 Repository.
Please let me know if you need any additional details or if there’s another approach I should try.