Skip to content
Discussion options

You must be logged in to vote

Hi @AnneVogt! Instead of getting the previous responses using getLastTrialData, what I would do here is use jsPsych's data filter function so that you can pick out the trial data that you need, regardless of whether or not the conditionals have run. The easiest way to do this is to add some unique labels to your questions using the trial's data parameter - this way you'll be able to filter on these labels. Here's an example:

var instrument_now = {
    type: 'survey-multi-choice',
    questions: [
      {prompt: "Spielen Sie aktuell aktiv ein Instrument?", name: 'instrument_now', options: yes_no_options, required:true, horizontal: true}, ],
    data: {question_name: 'instrument_now'}  // a…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by becky-gilbert
Comment options

You must be logged in to vote
0 replies
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