Providing feedback following button response #2881
Replies: 4 comments 3 replies
-
The |
Beta Was this translation helpful? Give feedback.
-
Thanks Josh. Since posting I checked that page and tried |
Beta Was this translation helpful? Give feedback.
-
There's a second issue in your on_finish: function (data) {
// Score the response as correct or incorrect.
if (data.correct = data.response === data.correct_response) {
data.correct == 1;
} else {
data.correct == 0;
}
} Here the on_finish: function (data) {
// Score the response as correct or incorrect.
if (data.response === data.correct_response) {
data.correct == 1;
} else {
data.correct == 0;
}
} |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to implement a feedback trial based on a button response where the buttons are
Yes
andNo
.I have two practice trials, one where 'Yes' will be the correct answer and the other where 'No' will be correct. I want to give them feedback to say correct or incorrect.
I've looked at the notes on the Dynamic parameters page and tried to implement this but 'correct' is always returned.
Here's my code so far:
I've trawled github and the old google group but can't find anything. I guess I need to define what the button presses are somewhere but don't know how to do that.
Any help you can give would be much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions