Millisecond Forums

Survey - Resetting Sliders?

https://forums.millisecond.com/Topic12252.aspx

By SpoHo - 2/3/2014

Hi!


I have a little Survey at the end of my Project. I have a Slider to rate three pictures in a row on a scale from 1-5.

I call the Surveypage by: / pages = [1=eatattr; 2 = eatattr; 3 = eatattr;]

The picture changes randomly as it is supposed, but my slider always shows the response from the picture before.How can I set it up in a way, in which the slider starts in a neutreal position when the page is refreshed?



I hope I could explain my problem in an understandable way!
By Dave - 2/3/2014

Use the <slider> element's /defaultresponse attribute:

<slider myslider>
/ caption="How do you feel about bananas?"
/ labels=("Cold", "Hot")
/ range = (0, 100)
/ increment = 1
/ defaultresponse = "50"
</slider>

<surveypage mypage>
/ questions = [1=myslider]
</surveypage>

<block myblock>
/ trials = [1-3=mypage]
</block>

Also: You ought run your <surveypage> via a <block> element if you want to run the same page repeatedly. This is important.
By SpoHo - 2/3/2014

thanks! i tried to run it via a block element by
<surveypage eatattr>
/stimulusframes = [1=pic,slider;]
...

</surveypage

<block test>
/bgstimt = (eatattr)

</block>


but I get an Error: could not locate stimulus " eatattr"


do you know what I'm doing wrong?

I also noticed, that my stimulus picture is not being exported to the data file
By Dave - 2/3/2014

A <surveypage> is a special kind of <trial> element. You thus need to use the <block> element's /trials attribute to run just as in the example code I posted.

A <surveypage> is *not* a stimulus (<text>, <picture>, etc.) that could be displayed via /bgstim.
By SpoHo - 2/3/2014

thanks!

no the sliders are working properly. When I'm calling my stimulus image via the surveypage /stimulusframes the display is shown, but it is not exported to the data.

When I call it via the block element and bgstim it is in the data, but not being shown. Any idea why that could happen?
By Dave - 2/3/2014

If you run

<block myblock>
/ trials = [1-3=mypage]
</block>

<surveypage mypage>
/ stimulusframes = [1=mytext]
/ questions = [1=myslider]
</surveypage>

<slider myslider>
</slider>

<text mytext>
/ items = ("A", "B", "C")
</text>

You will find that all stims are properly recorded in the resulting data file. While the example above uses a <text> element, this applies to <picture> elements just as well. /bgstim has nothing to do with it.

A wide-format <survey> data file will not capture anything displayed via /stimulusframes and is not supposed to. That's one of the reasons you ought to use <block> elements and look at the resulting long-format data file.