By Georgia - 6/7/2015
Hello, I am wondering how to include 2 sliders in my experiment but I don't know if they should be included in a block or a survey. I have included them as a block because I saw an example where this was done, but for some reason I get an error when I do this. Below is my syntax:
<slider time_response> / caption="How much time has gone by (in s)?" / labels=("0s", "15 s", "30 s", "60 s (1 min)") / txcolor = (0, 0, 0) / range = (0, 60) / increment = 1 /showticks = true /slidersize = (70%, 20%) /position = (10%, 50%) /defaultresponse = 0 </slider>
<slider mind_wander> / caption="How much of the time were you having irrelevant thoughts?" / labels=("0%", "50%", "100%") / txcolor = (0, 0, 0) / range = (0, 100) / increment = 1 /showticks = true /slidersize = (70%, 20%) /position = (10%, 50%) /defaultresponse = 0 </slider>
<block questions> /trials = [1-2=noreplace(time_response, 2=mind_wander)] </block>
Any help would be much appreciated. Thank you!
|
By Dave - 6/7/2015
A <slider> by itself is not a <trial>. You need to put your <slider> elements on one or several <surveypage> elements via the page's /questions attribute. A <surveypage> is a special kind of <trial>, i.e., you can either run it via a <block> or via a <survey> element (which is itself a special type of <block>).
<slider myslider> ... </slider>
<surveypage mypage> / questions = [1=myslider] ... </surveypage>
<block myblock> / trials = [1=mypage] ... </block>
|
|