Compulsory rating online - works locally but not on Pavlovia

Description of the problem: I have an experiment where participants have to rate on a continuous scale and ONLY THEN can press button to continue.

It works perfectly locally and execute exactly this deman, however online, the button (or even space) can be pressed without rating.

Here is the code for button (in Each Frame, Force end of Routine is off in every component):

if pr_expressibility.getRating() is not None:
if (pr_mouse.isPressedIn(button_weiter)):
continueRoutine = False

and automatically translated to JS: if ((pr_expressibility.getRating() !== null)) {
if (pr_mouse.isPressedIn(button_weiter)) {
continueRoutine = false;

Can someone help please?

Perhaps you can control the button start condition like in this video

wow, that was easy :slight_smile: thanks

1 Like