Millisecond Forums

Randomizing slider default response value

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

By mk1124 - 11/28/2016

Hi, I am trying to randomizing default response value in Slider element.
I wrote this code and it can set random value on default response, but such randomizing is successful in the first question only.
How can I randomize default response value in each question?

----

<picture faceSet1>
/ items = faceSet1
/ position = (30,30)
/ select = faceOrder1
/ height = 500px
/ erase = false
</picture>

<item faceSet1>
/ 1="0.jpg"
/ 2="1.jpg"
/ 3="2.jpg"
</item>

<list faceOrder1>
/ items = (1-3)
/ replace = false
/ selectionmode = random
/ selectionrate = always
</list>

<slider trustRate1>
/ labels = ("1", 100)
/ fontstyle = ("Meiryo",1.5%)
/ slidersize = (30,10)
/ position = (10,60)
/ showticks = false
/ range = (1,100)
/ required = true
/ defaultresponse = list.sliderrandom.nextvalue
</slider>

<list sliderRandom>
/ items = (1-100)
/ selectionmode = random
/ replace = true
/ selectionrate = always
</list>

<surveypage face1>
/ questions = [1=trustRate1]
/ stimulustimes =[1=faceSet1]
/ showbackbutton = false
</surveypage>

<survey faceRating1>
/ pages = [1-3=face1]
</survey>
By Dave - 11/28/2016

mk1124 - Tuesday, November 29, 2016
Hi, I am trying to randomizing default response value in Slider element.
I wrote this code and it can set random value on default response, but such randomizing is successful in the first question only.
How can I randomize default response value in each question?

----

<picture faceSet1>
/ items = faceSet1
/ position = (30,30)
/ select = faceOrder1
/ height = 500px
/ erase = false
</picture>

<item faceSet1>
/ 1="0.jpg"
/ 2="1.jpg"
/ 3="2.jpg"
</item>

<list faceOrder1>
/ items = (1-3)
/ replace = false
/ selectionmode = random
/ selectionrate = always
</list>

<slider trustRate1>
/ labels = ("1", 100)
/ fontstyle = ("Meiryo",1.5%)
/ slidersize = (30,10)
/ position = (10,60)
/ showticks = false
/ range = (1,100)
/ required = true
/ defaultresponse = list.sliderrandom.nextvalue
</slider>

<list sliderRandom>
/ items = (1-100)
/ selectionmode = random
/ replace = true
/ selectionrate = always
</list>

<surveypage face1>
/ questions = [1=trustRate1]
/ stimulustimes =[1=faceSet1]
/ showbackbutton = false
</surveypage>

<survey faceRating1>
/ pages = [1-3=face1]
</survey>

You need to run your surveypage via a <block>, not via a <survey>

<block faceRating1>
/ trials = [1-3=face1]
</block>
By mk1124 - 11/28/2016

Dave - Tuesday, November 29, 2016
mk1124 - Tuesday, November 29, 2016
Hi, I am trying to randomizing default response value in Slider element.
I wrote this code and it can set random value on default response, but such randomizing is successful in the first question only.
How can I randomize default response value in each question?

----

<picture faceSet1>
/ items = faceSet1
/ position = (30,30)
/ select = faceOrder1
/ height = 500px
/ erase = false
</picture>

<item faceSet1>
/ 1="0.jpg"
/ 2="1.jpg"
/ 3="2.jpg"
</item>

<list faceOrder1>
/ items = (1-3)
/ replace = false
/ selectionmode = random
/ selectionrate = always
</list>

<slider trustRate1>
/ labels = ("1", 100)
/ fontstyle = ("Meiryo",1.5%)
/ slidersize = (30,10)
/ position = (10,60)
/ showticks = false
/ range = (1,100)
/ required = true
/ defaultresponse = list.sliderrandom.nextvalue
</slider>

<list sliderRandom>
/ items = (1-100)
/ selectionmode = random
/ replace = true
/ selectionrate = always
</list>

<surveypage face1>
/ questions = [1=trustRate1]
/ stimulustimes =[1=faceSet1]
/ showbackbutton = false
</surveypage>

<survey faceRating1>
/ pages = [1-3=face1]
</survey>

You need to run your surveypage via a <block>, not via a <survey>

<block faceRating1>
/ trials = [1-3=face1]
</block>


By mk1124 - 11/28/2016

thanks! try it!
By mk1124 - 12/4/2016

Dave - Tuesday, November 29, 2016
mk1124 - Tuesday, November 29, 2016
Hi, I am trying to randomizing default response value in Slider element.
I wrote this code and it can set random value on default response, but such randomizing is successful in the first question only.
How can I randomize default response value in each question?

----

<picture faceSet1>
/ items = faceSet1
/ position = (30,30)
/ select = faceOrder1
/ height = 500px
/ erase = false
</picture>

<item faceSet1>
/ 1="0.jpg"
/ 2="1.jpg"
/ 3="2.jpg"
</item>

<list faceOrder1>
/ items = (1-3)
/ replace = false
/ selectionmode = random
/ selectionrate = always
</list>

<slider trustRate1>
/ labels = ("1", 100)
/ fontstyle = ("Meiryo",1.5%)
/ slidersize = (30,10)
/ position = (10,60)
/ showticks = false
/ range = (1,100)
/ required = true
/ defaultresponse = list.sliderrandom.nextvalue
</slider>

<list sliderRandom>
/ items = (1-100)
/ selectionmode = random
/ replace = true
/ selectionrate = always
</list>

<surveypage face1>
/ questions = [1=trustRate1]
/ stimulustimes =[1=faceSet1]
/ showbackbutton = false
</surveypage>

<survey faceRating1>
/ pages = [1-3=face1]
</survey>

You need to run your surveypage via a <block>, not via a <survey>

<block faceRating1>
/ trials = [1-3=face1]
</block>

I found another issue about Slider element.

In Windows 7, when a mouse is on a slider button, slider value appear.
But, I would like to use slider like VAS and to make slider value invisible. Is it possible?

By Dave - 12/4/2016

mk1124 - Sunday, December 04, 2016
Dave - Tuesday, November 29, 2016
mk1124 - Tuesday, November 29, 2016
Hi, I am trying to randomizing default response value in Slider element.
I wrote this code and it can set random value on default response, but such randomizing is successful in the first question only.
How can I randomize default response value in each question?

----

<picture faceSet1>
/ items = faceSet1
/ position = (30,30)
/ select = faceOrder1
/ height = 500px
/ erase = false
</picture>

<item faceSet1>
/ 1="0.jpg"
/ 2="1.jpg"
/ 3="2.jpg"
</item>

<list faceOrder1>
/ items = (1-3)
/ replace = false
/ selectionmode = random
/ selectionrate = always
</list>

<slider trustRate1>
/ labels = ("1", 100)
/ fontstyle = ("Meiryo",1.5%)
/ slidersize = (30,10)
/ position = (10,60)
/ showticks = false
/ range = (1,100)
/ required = true
/ defaultresponse = list.sliderrandom.nextvalue
</slider>

<list sliderRandom>
/ items = (1-100)
/ selectionmode = random
/ replace = true
/ selectionrate = always
</list>

<surveypage face1>
/ questions = [1=trustRate1]
/ stimulustimes =[1=faceSet1]
/ showbackbutton = false
</surveypage>

<survey faceRating1>
/ pages = [1-3=face1]
</survey>

You need to run your surveypage via a <block>, not via a <survey>

<block faceRating1>
/ trials = [1-3=face1]
</block>

I found another issue about Slider element.

In Windows 7, when a mouse is on a slider button, slider value appear.
But, I would like to use slider like VAS and to make slider value invisible. Is it possible?


> In Windows 7, when a mouse is on a slider button, slider value appear.

This is the intended default behavior. To suppress this, set the <slider>'s /showtooltips attribute to false.

<slider myslider>
...
/ showtooltips = false
</slider>