psychopy.org | Reference | Downloads | Github

ReferenceError - variable not defined issues

Code: https://gitlab.pavlovia.org/sahara/creativity_take2/blob/master/BESTTESTno2.psyexp

Description of the problem:error

Hey there! I have an experiment that runs perfectly offline, but I get this reference error whenever I run the experiment online. The experiment is set up to allow for free text to be input by the participant, and inputText is defined within the code custom component in builder view. I am not sure which steps to take to resolve this issue, and any advice would be appreciated, thanks!

Right now you have to translate the Python code into JavaScript by hand and paste it into the right hand panel of the Code Component after selecting the “both” option at the top of the dialog.

We do have auto-translation in the works, but it itsn’t quite there yet.