Saving data for free-sort plugin #2007
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @jaydavies16129, you're right that the plugin doesn't save the prompt by default. So one way to change this is to modify the plugin file. You're right that this is the relevant bit of plugin code: jsPsych/plugins/jspsych-free-sort.js Lines 398 to 403 in db8bab4 You can add the prompt to the data by adding a new 'prompt' property to the trial data object and giving it the value const trial_data = {
init_locations: init_locations,
moves: moves,
final_locations: final_locations,
rt: rt,
prompt: trial.prompt
}; Or if you're using jsPsych 6.3.0+, then you can use the var trial_1 = {
type: 'free-sort',
// other parameters ...
save_trial_parameters: {
prompt: true
}
}; I hope that helps! |
Beta Was this translation helpful? Give feedback.
-
hi @becky-gilbert, you're a star as always!! |
Beta Was this translation helpful? Give feedback.
Hi @jaydavies16129, you're right that the plugin doesn't save the prompt by default. So one way to change this is to modify the plugin file. You're right that this is the relevant bit of plugin code:
jsPsych/plugins/jspsych-free-sort.js
Lines 398 to 403 in db8bab4
You can add the prompt to the data by adding a new 'prompt' property to the trial data object and giving it the value
trial.prompt
:Or …