Skip to content
Discussion options

You must be logged in to vote

Oh, I found where to edit it in the jspsych-survey-multi-choice.js file!

      // create object to hold responses
      var question_data = {};
      for(var i=0; i<trial.questions.length; i++){
        var match = display_element.querySelector('#jspsych-survey-multi-choice-'+i);
        var id = "Q" + i;
        if(match.querySelector("input[type=radio]:checked") !== null){
          var val = match.querySelector("input[type=radio]:checked").value;
        } else {
          var val = null; // <--changed from one double quote (") to null
        }

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jodeleeuw
Comment options

@becky-gilbert
Comment options

@csducate
Comment options

@becky-gilbert
Comment options

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