Millisecond Forums

Picture disappears on survey page?

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

By nashby - 8/17/2014

Hello everyone. I am having a problem with the following survey which shows pictures of children and asks them a few questions on sliders. I have it set to force response so if a slider is not moved when the continue button is pressed it highlights it red to prompt for input. However, while the highlighting works, it also for some reason makes the picture on the screen disappears. Is there anyway to ensure the picture stays but the highlighting pops up?

Here is my code:

**************************************************************************************************************
                                    DEFAULT SCREEN SETTING
**************************************************************************************************************
**************************************************************************************************************
requires Inquisit 4.0.0.0

<defaults>
/ minimumversion = "4.0.0.0"
/ inputdevice = mouse
/ fontstyle = ("Arial", 3.5%, false, false, false, false, 5, 0)
</defaults>


<data>
/file = "predon.iqdat"
/ columns = [subject, response, latency, trialcode, values.picture, expt.main.totalsumlatency]
/separatefiles = true
</data>

<values>
/ picture = " "
</values>



<text intro>
/ items =  ("In the current task you will be shown several pictures of children in need and asked some questions about them.

Please respond as accurately and as honestly as possible; there are no right or wrong responses.

Please click CONTINUE when you are ready to begin.")
/ position = (50%, 2.5%)
/ size = (95%, 95%)
/ hjustify = left
/ fontstyle = ("Arial", 3.5%, false, false, false, false, 5, 0)
/ valign = top
/ txcolor = (black)
</text>


<text Proceed>
/ items = ("CONTINUE")
/ position = (50%, 90%)
/ fontstyle = ("Arial", 3%, false, false, true, false, 5, 0)
/ txcolor = darkgreen
/ txbgcolor = (transparent)
</text>


<picture pictures>
/ items =  ("kid (1).bmp", "kid (2).bmp", "kid (3).bmp", "kid (4).bmp","kid (5).bmp", "kid (6).bmp","kid (7).bmp", "kid (8).bmp","kid (9).bmp", "kid (10).bmp","kid (11).bmp", "kid (12).bmp", "kid (13).bmp", "kid (14).bmp","kid (15).bmp", "kid (16).bmp")
/ select = noreplace
/ position = (75%, 35%)
/ size = (30%, 30%)
</picture> 

<slider impact>
/ caption="How much do you think a donation would impact(benefit) this child?"
/ labels=("Not at all/None", "Very/A lot")
/ range = (0, 100)
/ increment = 1
/ fontstyle = ("Arial", 2.2%)
/ required = true
/ showticks = false
/ showtooltips = false
/ slidersize = (40%, 3%)
/ responsefontstyle = ("Arial", 2.1%)
/ subcaption = " "
/ subcaptionfontstyle = ("Arial", .5%)
</slider>

<slider sympathy>
/ caption="How much sympathy do you have for this child?"
/ labels=("Not at all/None", "Very/A lot")
/ range = (0, 100)
/ increment = 1
/ fontstyle = ("Arial", 2.2%)
/ required = true
/ showticks = false
/ showtooltips = false
/ slidersize = (40%, 3%)
/ responsefontstyle = ("Arial", 2.1%)
/ subcaption = " "
/ subcaptionfontstyle = ("Arial", .5%)
</slider>

<slider need>
/ caption="How much need do you this child has?"
/ labels=("Not at all/None", "Very/A lot")
/ range = (0, 100)
/ increment = 1
/ fontstyle = ("Arial", 2.2%)
/ required = true
/ showticks = false
/ showtooltips = false
/ slidersize = (40%, 3%)
/ responsefontstyle = ("Arial", 2.1%)
/ subcaption = " "
/ subcaptionfontstyle = ("Arial", .5%)
</slider>



<trial instructions>
/ stimulusframes = [1= Intro, Proceed]
/ validresponse = (Proceed)
/ recorddata = false
</trial>




<surveypage ratings>
/ stimulusframes = [1 = pictures;]
/ questions = [1 = impact; 2 = sympathy; 3 = need;]
/ showpagenumbers = false
/ showquestionnumbers = false
/ nextbuttonposition = (50%, 90%) 
/ finishlabel = "CONTINUE"
/ itemspacing = 10%
/ recorddata = true
/ navigationbuttonsize = (10%, 5%)
/ navigationbuttonfontstyle = ("Arial", 2%, false, false, false, false, 5, 0)
/ ontrialend = [values.picture = picture.pictures.currentitem]
</surveypage>

<block Task>
/ trials = [1= instructions; 2-17 = ratings;]
</block>


<expt main>
/ blocks = [1 =  Task;]
</expt>

By Dave - 8/17/2014

Yes, that's how things drawn via /stimulusframes on <surveypage>s behave currently -- they are not redrawn. For an (imperfect) workaround see https://www.millisecond.com/forums/Topic13959.aspx
By nashby - 8/17/2014

Thanks.