survey-text content validation + timeline_variables + randomized_order:true #1567
Unanswered
CristinaMendonca
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I think that the issue is that we changed how we are storing hierarchical data in jsPsych 6.3.0. var response = JSON.parse(jsPsych.data.getLastTrialData().values()[0].responses).Q0; On the above line, you no longer need to Try this as a replacement. var response = jsPsych.data.getLastTrialData().values()[0].response.Q0; |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!,
I would like to do some minimal survey-text validation (just see if the participant has inputted anything at all in the text-box). I tried adapting this other solution, but couldn't get it to work so far: it will display a first random item, but will then display no content (the progress bar is updated, so the trial is terminating successfully). I'm guessing it is some interference from other features I've added (timeline_variables or randomized_order:true), so here's the code with all the main features:
Thanks a lot in advance!,
Cristina
Beta Was this translation helpful? Give feedback.
All reactions