Description of the problem:
This experiment works fine in psychopy, in local computer. I want to put it online through Pavlovia. It begins well, but the problem arises when the participant clicks on the slider and then the program ends with an error - it shouldn’t end there.
I think the problem happens in the routine following the slider. In such routine, there is a text component with the command: “$u"O favorecido decidiu COMPARTILHAR o valor passado a ele por você. Com isso, você possui " + str((10 - rating_exemplo_6.getRating()) + (2 * rating_exemplo_6.getRating())) + u” PONTOS no total."
So the command in this text component should get the imput of the slider of the previous routine and then exhibit a new number. But it just crashes when in pavlovia. Works fine in psychopy.
Error message:
Unfortunately we encountered the following error:
- ReferenceError: str is not defined
Try to run the experiment again. If the error persists, contact the experiment designer.
If necessary, I may share more information. Thanks in advance!