Skip to content
Discussion options

You must be logged in to vote

Hi @jhee1610, sorry that validating survey-text responses is a little tricky right now. We're planning to update the survey-* plugins in the near future (later this summer or fall), and when we do that, this will be come a lot easier!

In the meantime, I had a look at your code and found a few issues. (I'm assuming you're using jsPsych v6.3.0+, if not then you may need to tweak my solution).

  1. The value of num isn't being saved to the trial data on each iteration of your loop. The reason is that all of the loop code runs before the experiment starts, but the code inside of a function parameter, such as the on_finish function, doesn't run until during the experiment. So the num variable in t…

Replies: 1 comment 1 reply

Comment options

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

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