Millisecond Forums

Control timing of survey elements on a single page

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

By Lizeroo - 2/18/2020

Hi there,
I am trying to program a single survey page to display two captions and then a radiobutton at specific times.
I have tried the syntax below as well as a version that excludes the /questions subcommand.  I keep getting the error "attribute:stimulustimes, message:could not locate element 'Wind1'.  Where am I going wrong?

<surveypage Windsp>
/ questions = [1 = Wind1; 2 = Wind2; 3 = Wind3]
/ stimulustimes = [100 = Wind1; 600 = Wind2; 1100 = Wind3]
/ timeout = 120000
/ showquestionnumbers = false
/ showpagenumbers = false
/ finishlabel = "CONTINUE"
</surveypage>

<caption Wind1>
/ caption = "blah blah 1?"
/ position = (10, 10)
/fontstyle = ("Arial", 22pt, true)
</caption>

<caption Wind2>
/ caption = "blah blah 2?"
/ position = (10, 25)
/fontstyle = ("Arial", 20pt, false)
</caption>

<radiobuttons Wind3>
/ caption = "Please choose the answer that most closely matches your first thought:"
/ options = ("response 1", "response 2", "response3")
/ optionvalues = ("1", "2", "3")
/ orientation = vertical
/ position = (10, 50)
/ required = false
</radiobuttons>
By Dave - 2/18/2020

Liz Shulman - 2/18/2020
Hi there,
I am trying to program a single survey page to display two captions and then a radiobutton at specific times.
I have tried the syntax below as well as a version that excludes the /questions subcommand.  I keep getting the error "attribute:stimulustimes, message:could not locate element 'Wind1'.  Where am I going wrong?

<surveypage Windsp>
/ questions = [1 = Wind1; 2 = Wind2; 3 = Wind3]
/ stimulustimes = [100 = Wind1; 600 = Wind2; 1100 = Wind3]
/ timeout = 120000
/ showquestionnumbers = false
/ showpagenumbers = false
/ finishlabel = "CONTINUE"
</surveypage>

<caption Wind1>
/ caption = "blah blah 1?"
/ position = (10, 10)
/fontstyle = ("Arial", 22pt, true)
</caption>

<caption Wind2>
/ caption = "blah blah 2?"
/ position = (10, 25)
/fontstyle = ("Arial", 20pt, false)
</caption>

<radiobuttons Wind3>
/ caption = "Please choose the answer that most closely matches your first thought:"
/ options = ("response 1", "response 2", "response3")
/ optionvalues = ("1", "2", "3")
/ orientation = vertical
/ position = (10, 50)
/ required = false
</radiobuttons>

Question elements (including <caption> elements) are not stimuli, so you cannot display them via /stimulustimes. If anything, you can do something like this:

<block example>
/ trials = [1=present]
</block>

<trial present>
/ stimulustimes = [0=clearscreen; 100=wind1; 600=wind2]
/ validresponse = (0)
/ trialduration = 1100
/ branch = [
    surveypage.respond;
]
</trial>

<surveypage respond>
/ stimulusframes = [1=wind1, wind2]
/ questions = [1=Wind3]
/ timeout = 120000
/ showquestionnumbers = false
/ showpagenumbers = false
/ finishlabel = "CONTINUE"
</surveypage>

<text Wind1>
/ items = ("blah blah 1?")
/ position = (10, 10)
/fontstyle = ("Arial", 22pt, true)
</text>

<text Wind2>
/ items = ("blah blah 2?")
/ position = (10, 25)
/fontstyle = ("Arial", 20pt, false)
</text>

<radiobuttons Wind3>
/ caption = "Please choose the answer that most closely matches your first thought:"
/ options = ("response 1", "response 2", "response3")
/ optionvalues = ("1", "2", "3")
/ orientation = vertical
/ position = (10, 50)
/ required = false
</radiobuttons>


By Lizeroo - 2/18/2020

Dave - 2/18/2020
Liz Shulman - 2/18/2020
Hi there,
I am trying to program a single survey page to display two captions and then a radiobutton at specific times.
I have tried the syntax below as well as a version that excludes the /questions subcommand.  I keep getting the error "attribute:stimulustimes, message:could not locate element 'Wind1'.  Where am I going wrong?

<surveypage Windsp>
/ questions = [1 = Wind1; 2 = Wind2; 3 = Wind3]
/ stimulustimes = [100 = Wind1; 600 = Wind2; 1100 = Wind3]
/ timeout = 120000
/ showquestionnumbers = false
/ showpagenumbers = false
/ finishlabel = "CONTINUE"
</surveypage>

<caption Wind1>
/ caption = "blah blah 1?"
/ position = (10, 10)
/fontstyle = ("Arial", 22pt, true)
</caption>

<caption Wind2>
/ caption = "blah blah 2?"
/ position = (10, 25)
/fontstyle = ("Arial", 20pt, false)
</caption>

<radiobuttons Wind3>
/ caption = "Please choose the answer that most closely matches your first thought:"
/ options = ("response 1", "response 2", "response3")
/ optionvalues = ("1", "2", "3")
/ orientation = vertical
/ position = (10, 50)
/ required = false
</radiobuttons>

Question elements (including <caption> elements) are not stimuli, so you cannot display them via /stimulustimes. If anything, you can do something like this:

<block example>
/ trials = [1=present]
</block>

<trial present>
/ stimulustimes = [0=clearscreen; 100=wind1; 600=wind2]
/ validresponse = (0)
/ trialduration = 1100
/ branch = [
    surveypage.respond;
]
</trial>

<surveypage respond>
/ stimulusframes = [1=wind1, wind2]
/ questions = [1=Wind3]
/ timeout = 120000
/ showquestionnumbers = false
/ showpagenumbers = false
/ finishlabel = "CONTINUE"
</surveypage>

<text Wind1>
/ items = ("blah blah 1?")
/ position = (10, 10)
/fontstyle = ("Arial", 22pt, true)
</text>

<text Wind2>
/ items = ("blah blah 2?")
/ position = (10, 25)
/fontstyle = ("Arial", 20pt, false)
</text>

<radiobuttons Wind3>
/ caption = "Please choose the answer that most closely matches your first thought:"
/ options = ("response 1", "response 2", "response3")
/ optionvalues = ("1", "2", "3")
/ orientation = vertical
/ position = (10, 50)
/ required = false
</radiobuttons>



Awesome! Thank you.