Skip to content
Discussion options

You must be logged in to vote

Hi @sonhkim, yes if you upload your stims.js file in cognition.run then the stims variable that's defined in that file should be available. You shouldn't have to do anything else. Can you try removing this line:

var stims = "stims.js";

Because that will overwrite the stims variable that's defined in your file.

I'd that doesn't fix it then I'm not sure what else could be causing the error. Maybe double-check that there aren't any errors in your stims.js file. And you can check that you have access to it in the main code by adding console.log(stims) somewhere. Then if you preview the study with the developer tools open, you should see the stims array in the console.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sonhkim
Comment options

Answer selected by jodeleeuw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants