pictures displayed in surveypage


Author
Message
IR
IR
IR
posted 10 Years Ago HOT
Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)
Group: Forum Members
Posts: 13, Visits: 146
Hello,

I would like to have a series of pictures evaluated. I created a surveypage element in which each picture is presented with a slider. If I use the <image> element however, I do not have the name of the file that was presented to the participant listed anywhere in the results file. How can I fix this so that I can tell the order with which the pictures were presented to participants?

Thank you in advance for your help!

<item valence>
/1 = "prime_lit1.jpg"
/2 = "prime_lit2.jpg"
/3 = "prime_lit3.jpg"
/4 = "prime_lit4.jpg"
/5 = "prime_lit5.jpg"
</item>

<image val>
/items = valence
/position = (6.25%,2%)
</image>

<slider slid_val>
/ fontstyle = ("Arial", 4%)
/ position = (14%, 75%)
/ labels = ("Negative", "Positive")
/ range = (1,9)
/ slidersize = (60%, 6%)
/ showtooltips = false
/ required = true
</slider>

<surveypage Explicit1>
/ fontstyle = ("Arial", 3%, false, true)
/ questions=[1=val;2=slid_val]
/ showpagenumbers = false
/ showquestionnumbers = false
/ finishlabel = "Next"
/ nextbuttonposition = (60%, 90%)
</surveypage>


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
To do this, you need to employ a bit of trickery. One way is to have a <picture> element displayed of-screen on the <surveypage>, with the <image> element referencing that <picture>'s current item:

<block myblock>
/ trials = [1-5=Explicit1]
</block>


<item valence>
/1 = "prime_lit1.jpg"
/2 = "prime_lit2.jpg"
/3 = "prime_lit3.jpg"
/4 = "prime_lit4.jpg"
/5 = "prime_lit5.jpg"
</item>

<picture valpic>
/ items = valence
/ position = (-20%,-20%)
</picture>


<image val>
/items = ("<%picture.valpic.currentitem%>")
/position = (6.25%,2%)
</image>

<slider slid_val>
/ fontstyle = ("Arial", 4%)
/ position = (14%, 75%)
/ labels = ("Negative", "Positive")
/ range = (1,9)
/ slidersize = (60%, 6%)
/ showtooltips = false
/ required = true
</slider>

<surveypage Explicit1>
/ stimulusframes = [1=valpic]
/ fontstyle = ("Arial", 3%, false, true)
/ questions=[1=val;2=slid_val]
/ showpagenumbers = false
/ showquestionnumbers = false
/ finishlabel = "Next"
/ nextbuttonposition = (60%, 90%)
</surveypage>

IR
IR
Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)
Group: Forum Members
Posts: 13, Visits: 146
Thank you for your quick reply.

I tried to implement the changes that you suggested but it looks like
/items = ("<%picture.valpic.currentitem%>")
in the image element is not recognized. The error says "File not found".

Is there anything else that need to be done?

Thank you,
IR

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
Code works for me as given in my response (tested under 4.0.7.0) provided that the image files are where they're supposed to be (same folder as the script).

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
Attaching complete example (including images).

Attachments
example.zip (612 views, 3.00 KB)
IR
IR
Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)
Group: Forum Members
Posts: 13, Visits: 146
I updated my version of Inquisit (I was using the previous one) and now it works.

Thank you!!

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search