text item and slider on same page


Author
Message
LeaN
LeaN
Associate Member (223 reputation)Associate Member (223 reputation)Associate Member (223 reputation)Associate Member (223 reputation)Associate Member (223 reputation)Associate Member (223 reputation)Associate Member (223 reputation)Associate Member (223 reputation)Associate Member (223 reputation)
Group: Forum Members
Posts: 2, Visits: 12
Hi

In my survey, I would like to show a text item and a slider on the same page. I have some difficulty with it, because the text item has a very specific color specified in the text syntax and by color lists.

Right now, the text element and the slider are on different pages and shown in a sequence. This is the syntax right now:

<slider slider_trial1>
/ caption="How easy was it for you to read the prior statement?"
/ labels=("very hard", "very easy")
/ range = (1, 50)
/ slidersize=(60%, 5%)
/ position=(15%, 40%)
/ showticks = false
/ increment = 1
/ required = true
</slider>

<surveypage slider_trial1>
/questions = [1=slider_trial1]
/ showpagenumbers = false
/ showquestionnumbers = false
/ finishlabel = "continue"
</surveypage>

<item pair1>
/ 1 = "Kilkis is in Turkey."
</item>

<text pair1>
/ onprepare = [text.pair1.textcolorred=list.r.1; text.pair1.textcolorgreen=list.g.1; text.pair1.textcolorblue=list.b.1]
/ items = pair1
/ select = 1
/ size = (80%, 30%)
/ hjustify = center
/ vjustify = center
</text>

<list r>
/ items = (140, 120, 100, 80, 60, 40, 20, 0)
/ selectionmode = sequence
/ selectionrate = always
</list>

<list g>
/ items = (140, 120, 100, 80, 60, 40, 20, 0)
/ selectionmode = list.r.currentindex
/ selectionrate = always
</list>

<list b>
/ items = (140, 120, 100, 80, 60, 40, 20, 0)
/ selectionmode = list.r.currentindex
/ selectionrate = always
</list>

<trial pair1>
/ stimulustimes = [0=pair1]
/ validresponse = (",","c")
/ correctresponse = ("c")
</trial>

<block contiguity>
/trials = [1=pair1; 2=slider_trial1]

Is it possible to combine the text item with the slider on one page? I tried putting the text item into the surveypage, which didn't work. I also tried getting 'pair1' into a value for integrating it into the caption of the slider.

Thanks a lot for your help!

Lea
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 109K
If you want a <text> element displayed on a <surveypage>, you must use the <surveypage>'s /stimulusframes to do so (just as you would do in any regular <trial>):

<surveypage mypage>
/ stimulusframes = [1=mytext]
...
</surveypage>

LeaN
LeaN
Associate Member (223 reputation)Associate Member (223 reputation)Associate Member (223 reputation)Associate Member (223 reputation)Associate Member (223 reputation)Associate Member (223 reputation)Associate Member (223 reputation)Associate Member (223 reputation)Associate Member (223 reputation)
Group: Forum Members
Posts: 2, Visits: 12
Thanks so much! This works perfectly - the only problem now is, that since the slider is a 'required' question, the 'text' element disappears if I click 'continue' without moving the slider... Is there a way around?
The syntax now reads:

<slider slider_trial1>
/ caption="How easy was it for you to read the prior statement?"
/ labels=("very hard", "very easy")
/ range = (1, 50)
/ slidersize=(60%, 5%)
/ position=(15%, 60%)
/ showticks = false
/ increment = 1
/ required = true
</slider>

<surveypage slider_trial1>
/stimulusframes=[1=pair1]
/questions=[1=slider_trial1]
/ showpagenumbers = false
/ showquestionnumbers = false
/ finishlabel = "continue"
</surveypage>

<item pair1>
/ 1 = "Kilkis is in Turkey."
</item>

<text pair1>
/ onprepare = [text.pair1.textcolorred=list.r.1; text.pair1.textcolorgreen=list.g.1; text.pair1.textcolorblue=list.b.1]
/ items = pair1
/ select = 1
/ size = (80%, 30%)
/ position=(30%, 40%)
</text>

<list r>
/ items = (140, 120, 100, 80, 60, 40, 20, 0)
/ selectionmode = sequence
/ selectionrate = always
</list>

<list g>
/ items = (140, 120, 100, 80, 60, 40, 20, 0)
/ selectionmode = list.r.currentindex
/ selectionrate = always
</list>

<list b>
/ items = (140, 120, 100, 80, 60, 40, 20, 0)
/ selectionmode = list.r.currentindex
/ selectionrate = always


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 109K
> Is there a way around?

Currently only with some (a bit ugly) trickery: https://www.millisecond.com/forums/FindPost13960.aspx

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search