Millisecond Forums

Not sure why survey page isn't working

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

By beccabos - 7/23/2014

Hello- I'm struggling to make this picture presentation and survey page work. Can anyone see where I went wrong?  Attached here. 

Many thanks!!! 
By beccabos - 7/23/2014

stil no luck with revising as so… 
By Dave - 7/23/2014

The below refers to the 1st version you posted. In the future, please attach the original *.iqx file, not a Word document.

#1: An <item> element is *not* a stimulus. This won't work:

<item Essay_items>
/1 = "Essay01.jpg"
/2 = "Essay02.jpg"
/3 = "Essay03.jpg"
</item>

<trial Essay1>
/stimulustimes = [1=Essay_items]
/ pretrialpause = 500
/ timeout = 40000
/validresponse = (" ")
</trial>

You need to reference the <picture> (!) element in the <trial>'s /stimulusframes:

<trial Essay1>
/stimulustimes = [1=Essay]
/ pretrialpause = 500
/ timeout = 40000
/validresponse = (" ")
</trial>

<picture Essay>
/items = Essay_items
/select = sequence (1,2,3)
/position = (50,50)
</picture>

#2: You also ought get rid of the stray ')' in

<block Essay>
/trials = [1=Essay1; 2=Essay2; 3=Essay3; 4=Essaysurvey; 5=EndEssay)]
</block>
By beccabos - 7/23/2014

Thanks so much, Dave! I fixed that part, but now the script is having trouble "locating the element 'survey_essay'". Attached the iqx file here- I am stumped.

By Dave - 7/23/2014

<trial Essay2>
/stimulustimes = [1 = Survey_essay]
/pretrialpause = 500
/timeout = 65000
</trial>

<survey Survey_essay>
/pages = [1=Essaysurvey1 ; 2 = Essaysurvey2]
/finishlabel = "Finish"
/nextlabel = "Next"
/backlabel = "Back"
</survey>

A <survey> element is not a stimulus element. It is a type of <block>. (Similarly, a <surveypage> is a type of <trial>).