Skip to content
Discussion options

You must be logged in to vote

Hi @miriamdietz, I'm guessing the scoring isn't working because you're using the includes Javascript function to check the response, but includes is meant to be called on arrays. In your case, you've retrieved the MC option that the participant selected from the responses object as a string:

var answer_Q1 = data.response.Q0; 

So try checking the response string like this:

if(answer_Q1 == 'A rater likes me') { 

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@miriamdietz
Comment options

@jodeleeuw
Comment options

@becky-gilbert
Comment options

@miriamdietz
Comment options

@becky-gilbert
Comment options

Answer selected by becky-gilbert
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