Millisecond Forums

Randomly chosen picture in data

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

By LindaInquisit - 6/5/2021

Dear all,
In this part of my experiment, participants should be shown one of three images (randomly) and are asked to indicate which persons they recognize from that image. So far, I think I have managed. However, in the data file I cannot extract which picture was shown and hence whether their answer was correct or not. Any clues on how to tackle this issue? Instead of image, I tried to use the picture function, but that doesn’t connect to my survey page question.


<survey probe_recognition>
/ pages = [1= probe_recognition_page]
/ finishlabel = "Continue"
</survey>

<surveypage probe_recognition_page>
/ questions = [1= probe_recognition_images; 2= probe_recognition_question1; 3= probe_recognition_question2]
/ showpagenumbers = false
/ showquestionnumbers = false
/ branch = [if(dropdown.probe_recognition_question1.response == dropdown.probe_recognition_question2.response) surveypage.probe_recognition_page]
</surveypage>

<dropdown probe_recognition_question1>
/ caption = "Which 2 people do you recognize from THE FILM?"
/ subcaption = "Select the number of one of the actors:"
/ fontstyle = ("Calibri", 2.5%)
/ options = ("1","2","3","4","5","6","7","8","9","10","11","12","13","14")
/ required = true
/ position = (50%,30%)
</dropdown>

<dropdown probe_recognition_question2>
/ caption = "Select the number of the other actor:"
/ fontstyle = ("Calibri", 2.5%)
/ options = ("1","2","3","4","5","6","7","8","9","10","11","12","13","14")
/ required = true
/ position = (50%,45%)
</dropdown>

<image probe_recognition_images>
/ items = noreplacenorepeat("probe_recognition1.png"& "probe_recognition2.png"& "probe_recognition3.jpeg")
/ position = (0%,1%)
/ size = (100%, 98%)
</image>

<picture probe_recognition_picture>
/ items = noreplacenorepeat("probe_recognition1.png"& "probe_recognition2.png"& "probe_recognition3.jpeg")
/ position = (0%, 1%)
/ size = (100%, 98%)
</picture>

<item probe_recognition1>
/ 1 = "Probe_recognition1.png"
</item>
<item probe_recognition2>
/ 1 = "Probe_recognition2.png"
</item>
<item probe_recognition3>
/ 1 = "Probe_recognition3.jpeg"
</item>

Thanks in advance!

By Dave - 6/7/2021

LindaInquisit - 6/5/2021
Dear all,
In this part of my experiment, participants should be shown one of three images (randomly) and are asked to indicate which persons they recognize from that image. So far, I think I have managed. However, in the data file I cannot extract which picture was shown and hence whether their answer was correct or not. Any clues on how to tackle this issue? Instead of image, I tried to use the picture function, but that doesn’t connect to my survey page question.


<survey probe_recognition>
/ pages = [1= probe_recognition_page]
/ finishlabel = "Continue"
</survey>

<surveypage probe_recognition_page>
/ questions = [1= probe_recognition_images; 2= probe_recognition_question1; 3= probe_recognition_question2]
/ showpagenumbers = false
/ showquestionnumbers = false
/ branch = [if(dropdown.probe_recognition_question1.response == dropdown.probe_recognition_question2.response) surveypage.probe_recognition_page]
</surveypage>

<dropdown probe_recognition_question1>
/ caption = "Which 2 people do you recognize from THE FILM?"
/ subcaption = "Select the number of one of the actors:"
/ fontstyle = ("Calibri", 2.5%)
/ options = ("1","2","3","4","5","6","7","8","9","10","11","12","13","14")
/ required = true
/ position = (50%,30%)
</dropdown>

<dropdown probe_recognition_question2>
/ caption = "Select the number of the other actor:"
/ fontstyle = ("Calibri", 2.5%)
/ options = ("1","2","3","4","5","6","7","8","9","10","11","12","13","14")
/ required = true
/ position = (50%,45%)
</dropdown>

<image probe_recognition_images>
/ items = noreplacenorepeat("probe_recognition1.png"& "probe_recognition2.png"& "probe_recognition3.jpeg")
/ position = (0%,1%)
/ size = (100%, 98%)
</image>

<picture probe_recognition_picture>
/ items = noreplacenorepeat("probe_recognition1.png"& "probe_recognition2.png"& "probe_recognition3.jpeg")
/ position = (0%, 1%)
/ size = (100%, 98%)
</picture>

<item probe_recognition1>
/ 1 = "Probe_recognition1.png"
</item>
<item probe_recognition2>
/ 1 = "Probe_recognition2.png"
</item>
<item probe_recognition3>
/ 1 = "Probe_recognition3.jpeg"
</item>

Thanks in advance!


Please provide the full code as well as all files it requires to run (images, etc.). Put everything in a ZIP and then attach it to your post via +Insert -> Add FIle.

Generally see: https://www.millisecond.com/forums/FindPost15230.aspx