setAutoDraw(True) not working online?

URL of experiment: Pavlovia

Description of the problem:
I’m using setAutoDraw(True) to present some image stimuli online. I get the error message: ReferenceError: True is not defined.

Here’s how I’ve coded the images for javascript:


What can I do to fix this?

Thank you!
Hannah

In JS you use true not True. The auto translator knows this, so it doesn’t normally come up.

1 Like

@lpxhs5 Out of curiosity, does your python code (left hand side) work when running the task locally?

Thank you! Works perfectly now!

I was using your crib sheet to edit the Javascript manually:

Hi!

Yes, it works when running locally.

The intention is that you edit the Python side – that’s not in the manual translation section. Sorry for the confusion.

Ah, I see, my bad!
Thank you for your help!