Hello there,
Thank you very much for your reply. I did put a code component in the experiment. For the first slider, I use these following codes:
#Begin Routine
function shuffle(a) {
var j, x, i;
for (i = a.length - 1; i > 0; i--) {
j = Math.floor(Math.random() * (i + 1));
x = a[i];
a[i] = a[j];
a[j] = x;
}
return a;
}
list_of_labels_2 = [Choice1,Choice2,Choice3,Choice4]
shuffle(list_of_labels_2)
slider.marker.color = 'red'
slider.color='black'
ResponseChoice2=visual.Slider(win: psychoJS.window, ticks=(1,2,3,4), readOnly=False, showValue=False,showAccept=False, textColor='black', name='ResponseChoice2', choices=list_of_labels_2, textSize=0.5, size=1.5, pos=[0,0.3],mouseOnly=True, tickHeight=1.0)
For the second slider, I have these:
slider.marker.color = 'red'
slider.color='black'
Gender=visual.Slider(win: psychoJS.window,ticks=(1,2,3,4), readOnly=False, textColor='black', name='Gender', choices=list_of_labels_3,textSize=1, size=1.5, showValue=False,showAccept=False, pos=[0,-0.3], mouseOnly=True, tickHeight=1.0)
As for your side comment, I actually didn’t clarify it in the original post, but my experiment does not relate to any scale or rating. I utilize the slider as a “multiple choice question,” and the options below the “line” (the slider) will appear fully random (as you see the shuffle code I had in my codes).
Thank you very much for your suggestion on using the “radio” appearance. I checked it out, and apparently it does not work offline. Psychopy keeps giving me the unexpected keyword argument “…” Do you have any idea? Below are the codes after I changed it with radio style:
list_of_labels_2 = [Choice1,Choice2,Choice3,Choice4]
shuffle(list_of_labels_2)
ResponseChoice2 = visual.Slider(win=win, name='radio', style=['radio'],showValue=False,showAccept=False, textColor='black',lineColor='black', name='ResponseChoice2', choices=list_of_labels_2,marker='circle', textSize=0.5, markerColor='darked', size=1.5, pos=[0,0.3],mouseOnly=True, tickHeight=1.0)