URL of experiment: Sign in · GitLab (hope this works)
Do you want it to also run locally? (y/n) yes
What are you trying to achieve?:
I am trying to show the participants a feedback image depending on which image they clicked on. In the trial the participants can either click on myth_image or fact_image and depending on what they chose they should then see a different image as feedback. This works locally and when I run it in Pilot mode locally in my browser (so the JS code should be correct). However when I run it online via Pavlovia the feedback images are not displayed and instead the screen inswhite.
This is what I have included in the code component for the feedback:
Begin Frame (JS Code):
show_feedback_myth = false;
show_feedback_fact = false;
Each Frame (JS Code):
if ((!show_feedback_myth) && statement_mouse.clicked_name.includes('myth_image')) {
show_feedback_myth = true;
}
if ((!show_feedback_fact) && statement_mouse.clicked_name.includes('fact_image')) {
show_feedback_fact = true;
}
I have then set the condition of the two feedback images to show_feedback_myth or show_feedback_fact respectively.
I would greatly appreciate some help, thanks!