Millisecond Forums

Survey captions

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

By darbyh - 1/27/2017

Hi!

I am attempting to begin a survey with a caption on its own screen, but when I run the script the caption doesn't show up. Even when I include the caption as a page in the /page attribute it doesn't show up. Here is my script: 

<survey beliefs>
/ pages = [1=belief1; 2=belief2; 3=belief3; 4=belief4; 5=belief5]
/ showbackbutton = false
</survey>

<caption beliefs>
/ caption = "We will now ask you about some of your beliefs regarding the case you just read. There are no right answers, please answer as truthfully as you can."
/ fontstyle = ("Arial", 4.5%, true, false, false, false, 5, 0)
</caption>

<surveypage belief1>
/questions = [1 = belief1]
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (50%, 70%)
/ navigationbuttonfontstyle = ("Arial", 1.5%, true, false, false, false, 5, 0)
</surveypage>

<radiobuttons belief1>
/caption ="How responsible do you feel the defendant was for his actions?"
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 0)
/ txcolor = black
/ options = ("Completely responsible","Somewhat responsible", "Neutral", "Somewhat not responsible", "Completely not responsible")
/ order = sequence
/required = true
/orientation = vertical
/ responsefontstyle = ("Arial", 3.5%, true, false, false, false, 5, 0)
/ position = (10%, 40%)
</radiobuttons>

<surveypage belief2>
/questions = [1 = belief2]
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (50%, 70%)
/ navigationbuttonfontstyle = ("Arial", 1.5%, true, false, false, false, 5, 0)
</surveypage>

<radiobuttons belief2>
/caption ="To what extent do you feel the defendant should be excused for his crime?"
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 0)
/ txcolor = black
/ options = ("Not at all excused","A little bit excused", "Somewhat excused", "Mostly excused", "Completely excused")
/ order = sequence
/required = true
/orientation = vertical
/ responsefontstyle = ("Arial", 3.5%, true, false, false, false, 5, 0)
/ position = (10%, 40%)
</radiobuttons>

<surveypage belief3>
/questions = [1 = belief3]
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (50%, 70%)
/ navigationbuttonfontstyle = ("Arial", 1.5%, true, false, false, false, 5, 0)
</surveypage>

<radiobuttons belief3>
/caption ="How much control do you believe the defendant had over his actions?"
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 0)
/ txcolor = black
/ options = ("Complete control","Substantial control", "Some control", "Not much control", "No control")
/ order = sequence
/required = true
/orientation = vertical
/ responsefontstyle = ("Arial", 3.5%, true, false, false, false, 5, 0)
/ position = (10%, 40%)
</radiobuttons>

<surveypage belief4>
/questions = [1 = belief4]
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (50%, 70%)
/ navigationbuttonfontstyle = ("Arial", 1.5%, true, false, false, false, 5, 0)
</surveypage>

<radiobuttons belief4>
/caption ="If the defendant in this case were to have been found guilty of larceny, should he receive punishment for his actions and the harm he caused, or should he receive medical and psychiatric treatment for any conditions he is suffering from?"
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 0)
/ txcolor = black
/ options = ("Entirely punishment","Mostly punishment with some treatment", "Equal portions of punishment and treatment", "Mostly treatment with some punishment", "Entirely treatment")
/ order = sequence
/required = true
/orientation = vertical
/ responsefontstyle = ("Arial", 3.5%, true, false, false, false, 5, 0)
/ position = (10%, 25%)
</radiobuttons>

<surveypage belief5>
/questions = [1 = belief5]
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (50%, 70%)
/ navigationbuttonfontstyle = ("Arial", 1.5%, true, false, false, false, 5, 0)
</surveypage>

<radiobuttons belief5>
/caption ="If the defense case included testimony that Mr. Smith was addicted to heroin, and was also found guilty of larceny, should he receive punishment for his actions and the harm he caused, or should he receive medical and psychiatric treatment for any conditions he is suffering from?"
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 0)
/ txcolor = black
/ options = ("Entirely punishment","Mostly punishment with some treatment", "Equal portions of punishment and treatment", "Mostly treatment with some punishment", "Entirely treatment")
/ order = sequence
/required = true
/orientation = vertical
/ responsefontstyle = ("Arial", 3.5%, true, false, false, false, 5, 0)
/ position = (10%, 25%)
</radiobuttons>

By Dave - 1/27/2017

darbyh - Friday, January 27, 2017
Hi!

I am attempting to begin a survey with a caption on its own screen, but when I run the script the caption doesn't show up. Even when I include the caption as a page in the /page attribute it doesn't show up. Here is my script: 

<survey beliefs>
/ pages = [1=belief1; 2=belief2; 3=belief3; 4=belief4; 5=belief5]
/ showbackbutton = false
</survey>

<caption beliefs>
/ caption = "We will now ask you about some of your beliefs regarding the case you just read. There are no right answers, please answer as truthfully as you can."
/ fontstyle = ("Arial", 4.5%, true, false, false, false, 5, 0)
</caption>

<surveypage belief1>
/questions = [1 = belief1]
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (50%, 70%)
/ navigationbuttonfontstyle = ("Arial", 1.5%, true, false, false, false, 5, 0)
</surveypage>

<radiobuttons belief1>
/caption ="How responsible do you feel the defendant was for his actions?"
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 0)
/ txcolor = black
/ options = ("Completely responsible","Somewhat responsible", "Neutral", "Somewhat not responsible", "Completely not responsible")
/ order = sequence
/required = true
/orientation = vertical
/ responsefontstyle = ("Arial", 3.5%, true, false, false, false, 5, 0)
/ position = (10%, 40%)
</radiobuttons>

<surveypage belief2>
/questions = [1 = belief2]
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (50%, 70%)
/ navigationbuttonfontstyle = ("Arial", 1.5%, true, false, false, false, 5, 0)
</surveypage>

<radiobuttons belief2>
/caption ="To what extent do you feel the defendant should be excused for his crime?"
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 0)
/ txcolor = black
/ options = ("Not at all excused","A little bit excused", "Somewhat excused", "Mostly excused", "Completely excused")
/ order = sequence
/required = true
/orientation = vertical
/ responsefontstyle = ("Arial", 3.5%, true, false, false, false, 5, 0)
/ position = (10%, 40%)
</radiobuttons>

<surveypage belief3>
/questions = [1 = belief3]
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (50%, 70%)
/ navigationbuttonfontstyle = ("Arial", 1.5%, true, false, false, false, 5, 0)
</surveypage>

<radiobuttons belief3>
/caption ="How much control do you believe the defendant had over his actions?"
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 0)
/ txcolor = black
/ options = ("Complete control","Substantial control", "Some control", "Not much control", "No control")
/ order = sequence
/required = true
/orientation = vertical
/ responsefontstyle = ("Arial", 3.5%, true, false, false, false, 5, 0)
/ position = (10%, 40%)
</radiobuttons>

<surveypage belief4>
/questions = [1 = belief4]
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (50%, 70%)
/ navigationbuttonfontstyle = ("Arial", 1.5%, true, false, false, false, 5, 0)
</surveypage>

<radiobuttons belief4>
/caption ="If the defendant in this case were to have been found guilty of larceny, should he receive punishment for his actions and the harm he caused, or should he receive medical and psychiatric treatment for any conditions he is suffering from?"
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 0)
/ txcolor = black
/ options = ("Entirely punishment","Mostly punishment with some treatment", "Equal portions of punishment and treatment", "Mostly treatment with some punishment", "Entirely treatment")
/ order = sequence
/required = true
/orientation = vertical
/ responsefontstyle = ("Arial", 3.5%, true, false, false, false, 5, 0)
/ position = (10%, 25%)
</radiobuttons>

<surveypage belief5>
/questions = [1 = belief5]
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (50%, 70%)
/ navigationbuttonfontstyle = ("Arial", 1.5%, true, false, false, false, 5, 0)
</surveypage>

<radiobuttons belief5>
/caption ="If the defense case included testimony that Mr. Smith was addicted to heroin, and was also found guilty of larceny, should he receive punishment for his actions and the harm he caused, or should he receive medical and psychiatric treatment for any conditions he is suffering from?"
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 0)
/ txcolor = black
/ options = ("Entirely punishment","Mostly punishment with some treatment", "Equal portions of punishment and treatment", "Mostly treatment with some punishment", "Entirely treatment")
/ order = sequence
/required = true
/orientation = vertical
/ responsefontstyle = ("Arial", 3.5%, true, false, false, false, 5, 0)
/ position = (10%, 25%)
</radiobuttons>


A <caption> is not a <surveypage>. A <caption> is like any other question element (<radibuttons>, etc.). You need to create a <surveypage> and display the <caption> on it via the page's /questions attribute. You need to run that <surveypage> as the first page via your <survey>'s /pages attribute.
By darbyh - 1/27/2017

Dave - Friday, January 27, 2017
darbyh - Friday, January 27, 2017
Hi!

I am attempting to begin a survey with a caption on its own screen, but when I run the script the caption doesn't show up. Even when I include the caption as a page in the /page attribute it doesn't show up. Here is my script: 

<survey beliefs>
/ pages = [1=belief1; 2=belief2; 3=belief3; 4=belief4; 5=belief5]
/ showbackbutton = false
</survey>

<caption beliefs>
/ caption = "We will now ask you about some of your beliefs regarding the case you just read. There are no right answers, please answer as truthfully as you can."
/ fontstyle = ("Arial", 4.5%, true, false, false, false, 5, 0)
</caption>

<surveypage belief1>
/questions = [1 = belief1]
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (50%, 70%)
/ navigationbuttonfontstyle = ("Arial", 1.5%, true, false, false, false, 5, 0)
</surveypage>

<radiobuttons belief1>
/caption ="How responsible do you feel the defendant was for his actions?"
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 0)
/ txcolor = black
/ options = ("Completely responsible","Somewhat responsible", "Neutral", "Somewhat not responsible", "Completely not responsible")
/ order = sequence
/required = true
/orientation = vertical
/ responsefontstyle = ("Arial", 3.5%, true, false, false, false, 5, 0)
/ position = (10%, 40%)
</radiobuttons>

<surveypage belief2>
/questions = [1 = belief2]
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (50%, 70%)
/ navigationbuttonfontstyle = ("Arial", 1.5%, true, false, false, false, 5, 0)
</surveypage>

<radiobuttons belief2>
/caption ="To what extent do you feel the defendant should be excused for his crime?"
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 0)
/ txcolor = black
/ options = ("Not at all excused","A little bit excused", "Somewhat excused", "Mostly excused", "Completely excused")
/ order = sequence
/required = true
/orientation = vertical
/ responsefontstyle = ("Arial", 3.5%, true, false, false, false, 5, 0)
/ position = (10%, 40%)
</radiobuttons>

<surveypage belief3>
/questions = [1 = belief3]
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (50%, 70%)
/ navigationbuttonfontstyle = ("Arial", 1.5%, true, false, false, false, 5, 0)
</surveypage>

<radiobuttons belief3>
/caption ="How much control do you believe the defendant had over his actions?"
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 0)
/ txcolor = black
/ options = ("Complete control","Substantial control", "Some control", "Not much control", "No control")
/ order = sequence
/required = true
/orientation = vertical
/ responsefontstyle = ("Arial", 3.5%, true, false, false, false, 5, 0)
/ position = (10%, 40%)
</radiobuttons>

<surveypage belief4>
/questions = [1 = belief4]
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (50%, 70%)
/ navigationbuttonfontstyle = ("Arial", 1.5%, true, false, false, false, 5, 0)
</surveypage>

<radiobuttons belief4>
/caption ="If the defendant in this case were to have been found guilty of larceny, should he receive punishment for his actions and the harm he caused, or should he receive medical and psychiatric treatment for any conditions he is suffering from?"
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 0)
/ txcolor = black
/ options = ("Entirely punishment","Mostly punishment with some treatment", "Equal portions of punishment and treatment", "Mostly treatment with some punishment", "Entirely treatment")
/ order = sequence
/required = true
/orientation = vertical
/ responsefontstyle = ("Arial", 3.5%, true, false, false, false, 5, 0)
/ position = (10%, 25%)
</radiobuttons>

<surveypage belief5>
/questions = [1 = belief5]
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (50%, 70%)
/ navigationbuttonfontstyle = ("Arial", 1.5%, true, false, false, false, 5, 0)
</surveypage>

<radiobuttons belief5>
/caption ="If the defense case included testimony that Mr. Smith was addicted to heroin, and was also found guilty of larceny, should he receive punishment for his actions and the harm he caused, or should he receive medical and psychiatric treatment for any conditions he is suffering from?"
/ fontstyle = ("Arial", 4%, true, false, false, false, 5, 0)
/ txcolor = black
/ options = ("Entirely punishment","Mostly punishment with some treatment", "Equal portions of punishment and treatment", "Mostly treatment with some punishment", "Entirely treatment")
/ order = sequence
/required = true
/orientation = vertical
/ responsefontstyle = ("Arial", 3.5%, true, false, false, false, 5, 0)
/ position = (10%, 25%)
</radiobuttons>


A <caption> is not a <surveypage>. A <caption> is like any other question element (<radibuttons>, etc.). You need to create a <surveypage> and display the <caption> on it via the page's /questions attribute. You need to run that <surveypage> as the first page via your <survey>'s /pages attribute.

Great, thank you! Works perfectly.