How to disable/disallow responses in a trial with the canvas-slider-response plugin? #2372
-
Dear All, I have a trial in my experiment where participants are presented with a canvas drawn object and a slider is presented to the participants. However, I don't want participants to respond to this using the slider. That is, I want the participants to just see the prompt, slider, and the canvas-drawn object. Is there a way to disallow responses? Or a way to disable the slider, so that they can't respond? Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @prashantig25, var slider_trial = {
// ...
on_load: function () {
var slider = document.getElementsByTagName('input')[0];
slider.disabled = true;
}
} Does that work? |
Beta Was this translation helpful? Give feedback.
Hi @prashantig25,
I don't think there's a way to do this using the plugin's existing parameters. One option is to use the trial's
on_load
function to access the slider element and disable it. I haven't tried this but I think you could do something like this:Does that work?