TypeError: slider.recordRating is not a function

URL of experiment: https://pavlovia.org/run/pjcmay/timedilationpilot

Description of the problem: I have an experiment where the position of a slider needs to be predefined to a position given by the variable cur. I am doing this with a Builder code element where “Begin routine” contains


This works fine on my local laptop, but when I push this to Pavlovia, I get the error message

  • TypeError: slider.recordRating is not a function

Can anyone suggest a fix?

Hello @Patrick1,

recordRating was previously not a public function in PsychoJS, which explains why it could not be called.
But I see not problem with exposing it. I have done just that and, as far as I can tell, your experiment is now running.
Best wishes,