Skip to content
Discussion options

You must be logged in to vote

Hi, I hope you don't mind that I looked into this as I was concerned that there might be a problem with the survey plugin or its interaction with JATOS. I think the problem is in your code that sets up the ranking question here:

pages: function() { return [
  [
    {type: 'html', prompt: header + '<p><b>Language dominance</b></p>'},
    {type: 'ranking', prompt: 'Click and drag to rank your languages in order of most dominant (1) to least dominant (5)', options: [lang_list[0], lang_list[1], lang_list[2], lang_list[3], lang_list[4]], name: "langdom"}
  ]
]}

If there are fewer than 5 languages in the lang_list array then you will get "undefined" when trying to index the values that don't ex…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@LangDevLab
Comment options

@jodeleeuw
Comment options

@LangDevLab
Comment options

Comment options

You must be logged in to vote
2 replies
@LangDevLab
Comment options

@LangDevLab
Comment options

Answer selected by LangDevLab
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