Display Correct Responses to Participants across Multiple Solution Attempts?


Author
Message
mundia
mundia
Partner Member (613 reputation)Partner Member (613 reputation)Partner Member (613 reputation)Partner Member (613 reputation)Partner Member (613 reputation)Partner Member (613 reputation)Partner Member (613 reputation)Partner Member (613 reputation)Partner Member (613 reputation)
Group: Forum Members
Posts: 5, Visits: 40
Hi, 

I'm working on coding an anagram task where participants are asked to find as many solutions for each presented anagram. I want to include a box on the right hand side of the screen that functions as a chest of found solutions. So for example, if a participant is shown "EATHR" and they submit "HEART" as a solution, they would see "HEART" pop up on the right hand side box. This way they can keep track of the solutions they've found for each trial. I'm thinking the text element might be the best way to solve this? Wondering if anyone has any other suggestions/insights on how to go about this issue. 

Below is the code I'm currently working with. 

*******STIMULUS*********
<text a1>
/items = ("EAHTR")
/position = (30, 35)
/txcolor = black
/ size = (10%, 5%)
/erase = false
</text>

<text a2>
/items = ("KINTH")
/position = (30, 35)
/ size = (10%, 5%)
/txcolor = black
/erase = false
</text>

<item answer_a1>
/ 1 = "earth"
/ 2 = "heart"
</item>

<item answer_a2>
/ 1 = "think"
</item>

<text solutions>
/items = solutions
/position = (30, 20)
/txcolor = black
/ select = values.condition
/ erase = false
</text>

<text instr>
/items = ("Type 'next' to move on to the next anagram")
/ position = (30, 5)
</text>

<item solutions>
/ 1 = "<%values.nsolutions%> Solutions"
</item>

 
********TRIALS********
<openended a1>
/ ontrialbegin = [
    values.nsolutions = 2; 
]
/ stimulusframes = [1 = a1, solutions]
/validresponse = ("next", anyresponse)
/ correctresponse = ("earth", "heart")
/ buttonlabel = "Submit"
/ position = (30, 50)
/branch = [
if(openended.a1.response !="next")openended.a1
]
</openended>

<openended a2>
/ ontrialbegin = [
    values.nsolutions = 1; 
]
/ stimulusframes = [1 = a2, solutions]
/validresponse = ("next", anyresponse)
/ correctresponse = ("think")
/ buttonlabel = "Submit"
/ position = (30, 50)
/branch = [
if(openended.a2.response !="next")openended.a2
]
</openended>

<values>
/ condition = 0
/ nsolutions = 0
</values>

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: 105K
mundia - Sunday, March 5, 2017
Hi, 

I'm working on coding an anagram task where participants are asked to find as many solutions for each presented anagram. I want to include a box on the right hand side of the screen that functions as a chest of found solutions. So for example, if a participant is shown "EATHR" and they submit "HEART" as a solution, they would see "HEART" pop up on the right hand side box. This way they can keep track of the solutions they've found for each trial. I'm thinking the text element might be the best way to solve this? Wondering if anyone has any other suggestions/insights on how to go about this issue. 

Below is the code I'm currently working with. 

*******STIMULUS*********
<text a1>
/items = ("EAHTR")
/position = (30, 35)
/txcolor = black
/ size = (10%, 5%)
/erase = false
</text>

<text a2>
/items = ("KINTH")
/position = (30, 35)
/ size = (10%, 5%)
/txcolor = black
/erase = false
</text>

<item answer_a1>
/ 1 = "earth"
/ 2 = "heart"
</item>

<item answer_a2>
/ 1 = "think"
</item>

<text solutions>
/items = solutions
/position = (30, 20)
/txcolor = black
/ select = values.condition
/ erase = false
</text>

<text instr>
/items = ("Type 'next' to move on to the next anagram")
/ position = (30, 5)
</text>

<item solutions>
/ 1 = "<%values.nsolutions%> Solutions"
</item>

 
********TRIALS********
<openended a1>
/ ontrialbegin = [
    values.nsolutions = 2; 
]
/ stimulusframes = [1 = a1, solutions]
/validresponse = ("next", anyresponse)
/ correctresponse = ("earth", "heart")
/ buttonlabel = "Submit"
/ position = (30, 50)
/branch = [
if(openended.a1.response !="next")openended.a1
]
</openended>

<openended a2>
/ ontrialbegin = [
    values.nsolutions = 1; 
]
/ stimulusframes = [1 = a2, solutions]
/validresponse = ("next", anyresponse)
/ correctresponse = ("think")
/ buttonlabel = "Submit"
/ position = (30, 50)
/branch = [
if(openended.a2.response !="next")openended.a2
]
</openended>

<values>
/ condition = 0
/ nsolutions = 0
</values>

See https://www.millisecond.com/forums/FindPost5888.aspx

mundia
mundia
Partner Member (613 reputation)Partner Member (613 reputation)Partner Member (613 reputation)Partner Member (613 reputation)Partner Member (613 reputation)Partner Member (613 reputation)Partner Member (613 reputation)Partner Member (613 reputation)Partner Member (613 reputation)
Group: Forum Members
Posts: 5, Visits: 40
Dave - Sunday, March 5, 2017
mundia - Sunday, March 5, 2017
Hi, 

I'm working on coding an anagram task where participants are asked to find as many solutions for each presented anagram. I want to include a box on the right hand side of the screen that functions as a chest of found solutions. So for example, if a participant is shown "EATHR" and they submit "HEART" as a solution, they would see "HEART" pop up on the right hand side box. This way they can keep track of the solutions they've found for each trial. I'm thinking the text element might be the best way to solve this? Wondering if anyone has any other suggestions/insights on how to go about this issue. 

Below is the code I'm currently working with. 

*******STIMULUS*********
<text a1>
/items = ("EAHTR")
/position = (30, 35)
/txcolor = black
/ size = (10%, 5%)
/erase = false
</text>

<text a2>
/items = ("KINTH")
/position = (30, 35)
/ size = (10%, 5%)
/txcolor = black
/erase = false
</text>

<item answer_a1>
/ 1 = "earth"
/ 2 = "heart"
</item>

<item answer_a2>
/ 1 = "think"
</item>

<text solutions>
/items = solutions
/position = (30, 20)
/txcolor = black
/ select = values.condition
/ erase = false
</text>

<text instr>
/items = ("Type 'next' to move on to the next anagram")
/ position = (30, 5)
</text>

<item solutions>
/ 1 = "<%values.nsolutions%> Solutions"
</item>

 
********TRIALS********
<openended a1>
/ ontrialbegin = [
    values.nsolutions = 2; 
]
/ stimulusframes = [1 = a1, solutions]
/validresponse = ("next", anyresponse)
/ correctresponse = ("earth", "heart")
/ buttonlabel = "Submit"
/ position = (30, 50)
/branch = [
if(openended.a1.response !="next")openended.a1
]
</openended>

<openended a2>
/ ontrialbegin = [
    values.nsolutions = 1; 
]
/ stimulusframes = [1 = a2, solutions]
/validresponse = ("next", anyresponse)
/ correctresponse = ("think")
/ buttonlabel = "Submit"
/ position = (30, 50)
/branch = [
if(openended.a2.response !="next")openended.a2
]
</openended>

<values>
/ condition = 0
/ nsolutions = 0
</values>

See https://www.millisecond.com/forums/FindPost5888.aspx

Hi Dave, 

Thanks for the reference! I tried playing around with some of the elements you used for the word distraction task, but ran into a couple of road blocks. For the anagram task, is there a way to have only correct responses to show on the screen rather than all responses. Also, is there a way to create a new line between each submitted correct response? I've tried the /newline command, but I can't seem to get it to work. 

Here's what I'm currently working with: 

*******STIMULUS*********

<text a1>
/items = ("EAHTR")
/position = (30, 35)
/txcolor = black
/ size = (10%, 5%)
/erase = false
</text>

<text a2>
/items = ("KINTH")
/position = (30, 35)
/ size = (10%, 5%)
/txcolor = black
/erase = false
</text>

<item answer_a1>
/ 1 = "earth"
/ 2 = "heart"
</item>

<item answer_a2>
/ 1 = "think"
</item>

<text solutions>
/items = solutions
/position = (30, 20)
/txcolor = black
/ select = values.condition
/ erase = false
</text>

<text instr>
/items = ("Type 'next' to move on to the next anagram")
/ position = (30, 5)
</text>

<item solutions>
/ 1 = "<%values.nsolutions%> Solutions"
</item>

<values>
/ attemptstimeout = 180000
/ responsestring = ""
/ newline = "~n"
</values>

<text responses>
/ items = ("Found Solutions: <%values.responsestring%>")
/ txbgcolor = (white)
/ erase = false
/ position = (70, 20)
/ size = (95%, 10%)
</text>


********TRIALS********
<openended a1>
/ ontrialbegin = [
  values.nsolutions = 2;
]
/ stimulusframes = [1 = a1, solutions, responses]
/validresponse = ("next", anyresponse)
/ correctresponse = ("earth", "heart")
/ buttonlabel = "Submit"
/ position = (30, 50)
/ branch = [if(openended.a1.response !="next")openended.a1]
/ontrialend = [
values.responsestring=concat(concat(values.responsestring,""), openended.a1.response)
]
</openended>

<openended a2>
/ ontrialbegin = [
  values.nsolutions = 1;
]
/ stimulusframes = [1 = a2, solutions, responses]
/validresponse = ("next", anyresponse)
/ correctresponse = ("think")
/ buttonlabel = "Submit"
/ position = (30, 50)
/ branch = [if(openended.a2.response !="next")openended.a2]
/ontrialend = [
values.responsestring=concat(concat(values.responsestring,""), openended.a2.response)
]
</openended>

*******BLOCKS**********
<block low_ambi>
/ bgstim = (instr)
/trials = [
1-2 = noreplace(openended.a1, openended.a2)
]
/timeout = 180000
</block>

<block high_ambi>
/bgstim = (instr)
/trials = [
1-2 = noreplace(openended.a1, openended.a2)
]
/timeout = 180000
</block>

*******EXPERIMENT********
<expt>
/ onexptbegin = [
  values.condition = 1;
]
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ blocks = [
1= noreplace(low_ambi)

]
/ preinstructions = (intro)
</expt>

<expt>
/ onexptbegin = [
  values.condition = 2;
]
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ blocks = [
1=noreplace(high_ambi)
]
/ preinstructions = (intro)
</expt>

<page intro>
instructions go here
</page>

<values>
/ condition = 0
/ nsolutions = 0
</values>

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: 105K
mundia - Monday, March 6, 2017
Dave - Sunday, March 5, 2017
mundia - Sunday, March 5, 2017
Hi, 

I'm working on coding an anagram task where participants are asked to find as many solutions for each presented anagram. I want to include a box on the right hand side of the screen that functions as a chest of found solutions. So for example, if a participant is shown "EATHR" and they submit "HEART" as a solution, they would see "HEART" pop up on the right hand side box. This way they can keep track of the solutions they've found for each trial. I'm thinking the text element might be the best way to solve this? Wondering if anyone has any other suggestions/insights on how to go about this issue. 

Below is the code I'm currently working with. 

*******STIMULUS*********
<text a1>
/items = ("EAHTR")
/position = (30, 35)
/txcolor = black
/ size = (10%, 5%)
/erase = false
</text>

<text a2>
/items = ("KINTH")
/position = (30, 35)
/ size = (10%, 5%)
/txcolor = black
/erase = false
</text>

<item answer_a1>
/ 1 = "earth"
/ 2 = "heart"
</item>

<item answer_a2>
/ 1 = "think"
</item>

<text solutions>
/items = solutions
/position = (30, 20)
/txcolor = black
/ select = values.condition
/ erase = false
</text>

<text instr>
/items = ("Type 'next' to move on to the next anagram")
/ position = (30, 5)
</text>

<item solutions>
/ 1 = "<%values.nsolutions%> Solutions"
</item>

 
********TRIALS********
<openended a1>
/ ontrialbegin = [
    values.nsolutions = 2; 
]
/ stimulusframes = [1 = a1, solutions]
/validresponse = ("next", anyresponse)
/ correctresponse = ("earth", "heart")
/ buttonlabel = "Submit"
/ position = (30, 50)
/branch = [
if(openended.a1.response !="next")openended.a1
]
</openended>

<openended a2>
/ ontrialbegin = [
    values.nsolutions = 1; 
]
/ stimulusframes = [1 = a2, solutions]
/validresponse = ("next", anyresponse)
/ correctresponse = ("think")
/ buttonlabel = "Submit"
/ position = (30, 50)
/branch = [
if(openended.a2.response !="next")openended.a2
]
</openended>

<values>
/ condition = 0
/ nsolutions = 0
</values>

See https://www.millisecond.com/forums/FindPost5888.aspx

Hi Dave, 

Thanks for the reference! I tried playing around with some of the elements you used for the word distraction task, but ran into a couple of road blocks. For the anagram task, is there a way to have only correct responses to show on the screen rather than all responses. Also, is there a way to create a new line between each submitted correct response? I've tried the /newline command, but I can't seem to get it to work. 

Here's what I'm currently working with: 

*******STIMULUS*********

<text a1>
/items = ("EAHTR")
/position = (30, 35)
/txcolor = black
/ size = (10%, 5%)
/erase = false
</text>

<text a2>
/items = ("KINTH")
/position = (30, 35)
/ size = (10%, 5%)
/txcolor = black
/erase = false
</text>

<item answer_a1>
/ 1 = "earth"
/ 2 = "heart"
</item>

<item answer_a2>
/ 1 = "think"
</item>

<text solutions>
/items = solutions
/position = (30, 20)
/txcolor = black
/ select = values.condition
/ erase = false
</text>

<text instr>
/items = ("Type 'next' to move on to the next anagram")
/ position = (30, 5)
</text>

<item solutions>
/ 1 = "<%values.nsolutions%> Solutions"
</item>

<values>
/ attemptstimeout = 180000
/ responsestring = ""
/ newline = "~n"
</values>

<text responses>
/ items = ("Found Solutions: <%values.responsestring%>")
/ txbgcolor = (white)
/ erase = false
/ position = (70, 20)
/ size = (95%, 10%)
</text>


********TRIALS********
<openended a1>
/ ontrialbegin = [
  values.nsolutions = 2;
]
/ stimulusframes = [1 = a1, solutions, responses]
/validresponse = ("next", anyresponse)
/ correctresponse = ("earth", "heart")
/ buttonlabel = "Submit"
/ position = (30, 50)
/ branch = [if(openended.a1.response !="next")openended.a1]
/ontrialend = [
values.responsestring=concat(concat(values.responsestring,""), openended.a1.response)
]
</openended>

<openended a2>
/ ontrialbegin = [
  values.nsolutions = 1;
]
/ stimulusframes = [1 = a2, solutions, responses]
/validresponse = ("next", anyresponse)
/ correctresponse = ("think")
/ buttonlabel = "Submit"
/ position = (30, 50)
/ branch = [if(openended.a2.response !="next")openended.a2]
/ontrialend = [
values.responsestring=concat(concat(values.responsestring,""), openended.a2.response)
]
</openended>

*******BLOCKS**********
<block low_ambi>
/ bgstim = (instr)
/trials = [
1-2 = noreplace(openended.a1, openended.a2)
]
/timeout = 180000
</block>

<block high_ambi>
/bgstim = (instr)
/trials = [
1-2 = noreplace(openended.a1, openended.a2)
]
/timeout = 180000
</block>

*******EXPERIMENT********
<expt>
/ onexptbegin = [
  values.condition = 1;
]
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ blocks = [
1= noreplace(low_ambi)

]
/ preinstructions = (intro)
</expt>

<expt>
/ onexptbegin = [
  values.condition = 2;
]
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ blocks = [
1=noreplace(high_ambi)
]
/ preinstructions = (intro)
</expt>

<page intro>
instructions go here
</page>

<values>
/ condition = 0
/ nsolutions = 0
</values>

*******STIMULUS*********

<text a1>
/items = ("EAHTR")
/position = (30, 35)
/txcolor = black
/ size = (10%, 5%)
/erase = false
</text>

<text a2>
/items = ("KINTH")
/position = (30, 35)
/ size = (10%, 5%)
/txcolor = black
/erase = false
</text>

<item answer_a1>
/ 1 = "earth"
/ 2 = "heart"
</item>

<item answer_a2>
/ 1 = "think"
</item>

<text solutions>
/items = solutions
/position = (30, 20)
/txcolor = black
/ select = values.condition
/ erase = false
</text>

<text instr>
/items = ("Type 'next' to move on to the next anagram")
/ position = (30, 5)
</text>

<item solutions>
/ 1 = "<%values.nsolutions%> Solutions"
</item>

<values>
/ attemptstimeout = 180000
/ responsestring = ""
/ newline = "~n"
</values>

<text responses>
/ items = ("Found Solutions: <%values.responsestring%>")
/ txbgcolor = (white)
/ erase = false
/ position = (70, 20)
/ size = (95%, 10%)
</text>


********TRIALS********
<openended a1>
/ ontrialbegin = [
  values.nsolutions = 2;
]
/ stimulusframes = [1 = a1, solutions, responses]
/validresponse = ("next", anyresponse)
/ correctresponse = ("earth", "heart")
/ buttonlabel = "Submit"
/ position = (30, 50)
/ branch = [if(openended.a1.response !="next")openended.a1]
/ontrialend = [if(contains(values.a1_solutions, concat(concat("|",openended.a1.response),"|")))
values.responsestring=concat(concat(values.responsestring,values.newline),openended.a1.response)
]
</openended>

<openended a2>
/ ontrialbegin = [
  values.nsolutions = 1;
]
/ stimulusframes = [1 = a2, solutions, responses]
/validresponse = ("next", anyresponse)
/ correctresponse = ("think")
/ buttonlabel = "Submit"
/ position = (30, 50)
/ branch = [if(openended.a2.response !="next")openended.a2]
/ontrialend = [if(contains(values.a2_solutions, concat(concat("|",openended.a2.response),"|")))
values.responsestring=concat(concat(values.responsestring,values.newline), openended.a2.response)
]
</openended>

*******BLOCKS**********
<block low_ambi>
/ bgstim = (instr)
/trials = [
1-2 = noreplace(openended.a1, openended.a2)
]
/timeout = 180000
</block>

<block high_ambi>
/bgstim = (instr)
/trials = [
1-2 = noreplace(openended.a1, openended.a2)
]
/timeout = 180000
</block>

*******EXPERIMENT********
<expt>
/ onexptbegin = [
  values.condition = 1;
]
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ blocks = [
1= noreplace(low_ambi)

]
/ preinstructions = (intro)
</expt>

<expt>
/ onexptbegin = [
  values.condition = 2;
]
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ blocks = [
1=noreplace(high_ambi)
]
/ preinstructions = (intro)
</expt>

<page intro>
instructions go here
</page>

<values>
/ condition = 0
/ nsolutions = 0
/ a1_solutions = "|earth|heart|"
/ a2_solutions = "|think|"
</values>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search