You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to pre-screen participants based on their answers to questions I ask.
I have :
A set of instructions,
A set of questions,
Then the actual experiment trials.
All defined and working.
Now
I want to assess their comprehension of the task based on their answers to these questions.
I want to achieve the following:
Show instructions and then questions and check their answers to questions
If all of their answers are right, show them a congrats page, and then continue with the actual trials.
If there are wrong answers, show them a page that gives them 3 options;
a) Repeat the questions you answered wrong
b) Repeat the instructions and then the questions you answered wrong
c) Opt out and recieve ... dollars
If they chose a) show them the questions they answered wrong
If they chose b) first show them instructions and then the questions they answered wrong
If they chose c) show them a finish experiment page and finish the experiment.
And I want to repeat this process until there are no wrong answers remaining, or they opt-out.
I have my questions:
var preq11 = {
type: 'survey-multi-choice',
show_clickable_nav: true,
questions: [
{
name: '',
prompt: '',
options: ["","],
answerindices: [0, 1, 2, 3],
correctAnswerIndex: 2 // Assuming the first option is the correct one for this example
},
],
on_finish: function(data) {
var isCorrect = evaluateAnswer(data);
data.isCorrect = isCorrect;
}
};
**I can check their answers, and find which questions were answered wrong.
But I couldn't manage to implement the rest...** Could you please help me with that ?
I am using jspsych 6.3.1.
Thanks a lot!
Fatih
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I am trying to pre-screen participants based on their answers to questions I ask.
I have :
All defined and working.
Now
I want to assess their comprehension of the task based on their answers to these questions.
I want to achieve the following:
a) Repeat the questions you answered wrong
b) Repeat the instructions and then the questions you answered wrong
c) Opt out and recieve ... dollars
If they chose a) show them the questions they answered wrong
If they chose b) first show them instructions and then the questions they answered wrong
If they chose c) show them a finish experiment page and finish the experiment.
And I want to repeat this process until there are no wrong answers remaining, or they opt-out.
I have my questions:
Beta Was this translation helpful? Give feedback.
All reactions