Slider Problem: strange overlapping


Author
Message
AnthonyRomyn
AnthonyRomyn
Respected Member (441 reputation)Respected Member (441 reputation)Respected Member (441 reputation)Respected Member (441 reputation)Respected Member (441 reputation)Respected Member (441 reputation)Respected Member (441 reputation)Respected Member (441 reputation)Respected Member (441 reputation)
Group: Forum Members
Posts: 3, Visits: 61
Hi All,
I've programmed a task to show a single slider question on each page, but something strange is happening.  I'll put my code at the bottom of the email and for now I'll explain what's happening.  For simplicity's sake, let's say I have 10 questions.  If I set /questions on the surveypage to noreplace(q1,q2,q3,q4,q5,q6,q7,q8,q9,q10) I get a weird effect:

http://www.millisecond.com/forums/uploads/images/e1c3fce5-0dd5-4555-b460-d072.png
The key here is that it only happens if I include q6 in combination with any other question(s).  So if I run everything but q6 it's fine, if I run only q1 (or any other question) and q6 it still happens.  Here's a picture of how it should look:
http://www.millisecond.com/forums/uploads/images/7f24c52b-f640-4389-8556-2d20.png

The problem is, that though I know this piece of code is poorly constructed, I don't see any reason why q6 should be bugging out like this.  Thanks in advance for any help!  Here's the code:

<expt FrequencyCondition>
/ blocks = [1=frequency]
</expt>

<survey frequency>
/ pages = [1-10=page1]
/ showbackbutton = false
/ screencolor = white
/ finishlabel = "Finished"
/ timeout = 1200000
</survey>

<surveypage page1>
/ questions= [1-10=noreplace(q1,q2,q3,q4,q5,q6,q7,q8,q9,q10)]
/ showbackbutton = false
/ showpagenumbers = false
/ showquestionnumbers = false
/ recorddata = true
</surveypage>
<slider q1>
/ caption = "<%item.statements_condition1.1%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q2>
/ caption = "<%item.statements_condition1.2%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q3>
/ caption = "<%item.statements_condition1.3%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q4>
/ caption = "<%item.statements_condition1.4%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q5>
/ caption = "<%item.statements_condition1.5%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q6>
/ caption = "<%item.statements_condition1.6%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q7>
/ caption = "<%item.statements_condition1.7%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q8>
/ caption = "<%item.statements_condition1.8%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q9>
/ caption = "<%item.statements_condition1.9%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q10>
/ caption = "<%item.statements_condition1.10%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>

<item statements_condition1>
/1="If a person is strong, it is safe to assume that they are also American

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/2="If a person is brave, it is safe to assume that they are also American

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/3="If a person is just, it is safe to assume that they are also American

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/4="If a person is patriotic, it is safe to assume that they are also American

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/5="If a person is hard-working, it is safe to assume that they are also American

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/6="If a person is unaware of the rest of the world, it is safe to assume that they are also American

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/7="If a person feels superior, it is safe to assume that they are also American

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/8="If a person is moral, it is safe to assume that they are also Christian

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/9="If a person is kind and selfless, it is safe to assume that they are also Christian

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/10="If a person is pure, it is safe to assume that they are also Christian

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
</item>



Tags
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: 104K
<surveypage page1>
/ questions= [1-10=noreplace(q1,q2,q3,q4,q5,q6,q7,q8,q9,q10)]
/ showbackbutton = false
/ showpagenumbers = false
/ showquestionnumbers = false
/ recorddata = true
</surveypage>

does not mean "display ONE random question out of the TEN". It means "display ALL TEN questions on the page IN RANDOM ORDER". The overlapping effect stems from the fact that you are drawing slider after slider on top of each other on the page.

What you actually want is

<surveypage page1>
/ questions= [1=noreplace(q1,q2,q3,q4,q5,q6,q7,q8,q9,q10)]
/ showbackbutton = false
/ showpagenumbers = false
/ showquestionnumbers = false
/ recorddata = true
</surveypage>

and you'll probably also want to run the page via a <block>, not a <survey>:

<expt FrequencyCondition>
/ blocks = [1=states;2=frequency]
</expt>

<values>
/ valuename1 = "600,000"
</values>

<dropdown state>
/ options = ("District of Columbia")
/ defaultresponse = ("District of Columbia")
</dropdown>

<survey states>
/ pages = [1=statepage]
</survey>

<surveypage statepage>
/ questions = [1=state]
</surveypage>

<block frequency>
/ trials = [1-10=page1]
/ screencolor = white
/ timeout = 1200000
</block>

<surveypage page1>
/ questions= [1=noreplace(q1,q2,q3,q4,q5,q6,q7,q8,q9,q10)]
/ showbackbutton = false
/ showpagenumbers = false
/ showquestionnumbers = false
/ recorddata = true
</surveypage>
<slider q1>
/ caption = "<%item.statements_condition1.1%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q2>
/ caption = "<%item.statements_condition1.2%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q3>
/ caption = "<%item.statements_condition1.3%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q4>
/ caption = "<%item.statements_condition1.4%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q5>
/ caption = "<%item.statements_condition1.5%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q6>
/ caption = "<%item.statements_condition1.6%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q7>
/ caption = "<%item.statements_condition1.7%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q8>
/ caption = "<%item.statements_condition1.8%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q9>
/ caption = "<%item.statements_condition1.9%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>
<slider q10>
/ caption = "<%item.statements_condition1.10%>"
/ range = (0, 100)
/ labels = ("0","<%values.valuename1%>")
/ position = (20%,20%)
/ fontstyle = ("Times New Roman", 4%, false, false, false, false, 5, 0)
/ slidersize = (50%, 30%)
/ increment = 1
/ defaultresponse = "0"
</slider>

<item statements_condition1>
/1="If a person is strong, it is safe to assume that they are also American

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/2="If a person is brave, it is safe to assume that they are also American

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/3="If a person is just, it is safe to assume that they are also American

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/4="If a person is patriotic, it is safe to assume that they are also American

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/5="If a person is hard-working, it is safe to assume that they are also American

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/6="If a person is unaware of the rest of the world, it is safe to assume that they are also American

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/7="If a person feels superior, it is safe to assume that they are also American

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/8="If a person is moral, it is safe to assume that they are also Christian

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/9="If a person is kind and selfless, it is safe to assume that they are also Christian

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
/10="If a person is pure, it is safe to assume that they are also Christian

Of the <%values.valuename1%> people in <%dropdown.state.response%>, how many do you think this applies for?

"
</item>

Hope this helps.

Edited 8 Years Ago by Dave
AnthonyRomyn
AnthonyRomyn
Respected Member (441 reputation)Respected Member (441 reputation)Respected Member (441 reputation)Respected Member (441 reputation)Respected Member (441 reputation)Respected Member (441 reputation)Respected Member (441 reputation)Respected Member (441 reputation)Respected Member (441 reputation)
Group: Forum Members
Posts: 3, Visits: 61
Wonderful!  Thanks so much Dave!  
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search