/iscorrectresponse in surveypage


Author
Message
francesca92
francesca92
Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)
Group: Forum Members
Posts: 3, Visits: 38
Hi! It’s my first time programming an experiment and I’m having some troubles with /iscorrectresponse.
I have a surveypage with a picture and two questions, a checkbox and a radiobuttons.
I would like to define the correct answers in the practice part with an error-correct message, but I don’t understand how to do it.
I need that the correctmessage appears only when there are correct answers in both questions. So only if participants reply “no” in checkboxes AND “100%” in radiobuttons. I have tried several combinations in /iscorrectresponse with different expressions but it seems that the correct answers are always wrong!
Could you help me please?
Thank you in advance!
Francesca

<checkboxes didyousee_practice>
/ caption="Did you see this person at the beginning?"
/ required = true
/ options=("yes", "no")
/position = (10, 10)
/range = (1,1)
/ correctresponse = ("no")
</checkboxes>

<radiobuttons howmuch_practice>
/ caption="How certain are you? I am ...% certain"
/ options=("0%", "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%")
/ required=true
/position = (10, 30)
/ correctresponse = ("100%")
</radiobuttons>

<surveypage practice_item>
/stimulusframes = [1 = practice_item]
/questions = [1-2= sequence (didyousee_practice, howmuch_practice)]
/ontrialbegin = [picture.practice_item]
/itemspacing = 2
/recorddata = true
/iscorrectresponse = ???
/ correctmessage = true(good, 3000)
/ errormessage = true(wrong, 10000)
</surveypage>

<text wrong>
/ items = ("WRONG!
This person is not the girl in the presentation at the beginning of the experiment!
The correct answer is no. I'm 100% certain of my answer")
</text>

<text good>
/items= ("GOOD!")
</text>

<block practice_item>
/preinstructions = (instructions)
/postinstructions = (endpractice)
/trials = [1-3 = practice_item]
/responsemode = correct
</block>

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
Here's how you can define this properly:

<radiobuttons didyousee_practice>
/ caption="Did you see this person at the beginning?"
/ required = true
/ options=("yes", "no")
/ validresponse = ("yes", "no")
/ correctresponse = ("no")
/position = (10, 10)
</radiobuttons>

<radiobuttons howmuch_practice>
/ caption="How certain are you? I am ...% certain"
/ options=("0%", "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%")
/ validresponse = ("0%", "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%")
/ correctresponse = ("100%")
/ required=true
/position = (10, 30)
</radiobuttons>

<text practice_item>
/ items = ("Person A", "Person B", "Person C")
/ position = (50%, 30%)
</text>

<surveypage practice_item>
/stimulusframes = [1 = practice_item]
/questions = [1=sequence(didyousee_practice, howmuch_practice)]
/itemspacing = 2
/recorddata = true
/iscorrectresponse = [radiobuttons.howmuch_practice.response == "100%" && radiobuttons.didyousee_practice.response == "no"]
/ correctmessage = true(good, 3000)
/ errormessage = true(wrong, 10000)
</surveypage>

<text wrong>
/ items = ("WRONG!
This person is not the girl in the presentation at the beginning of the experiment!
The correct answer is no. I'm 100% certain of my answer")
</text>

<text good>
/items= ("GOOD!")
</text>

<block practice_item>
/trials = [1-3 = practice_item]
/responsemode = correct
</block>


francesca92
francesca92
Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)
Group: Forum Members
Posts: 3, Visits: 38
It's working! Thank you so much!!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search