Millisecond Forums

Giving Feedback on Multiple choice Questionnaire

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

By nash - 1/30/2020

Hello together, I've come across a problem, and I would be very glad if somebody could help me out to solve it. 

This is my syntax for one test, with 6 items. Every item is a multiple choice item with 4 options and only one is correct.

####################################################################################################
#
# TESTLET ING_tcm_002_tex_en
#
####################################################################################################


###################
# Testletstamm
###################

<html st_ING_tcm_002_tex_en>
/ items = ("Stamm_ING_tcm_002_tex_en.base64.html")
/ position = (0%,50%)
/ showborders = false
/ showscrollbars = True
/ size = (100%,100%)
</html>


###################
# Items
###################


<radiobuttons ING_tcm_002a>
/ caption = "A spring (mass 0,005 kg), an apple (mass 0,25 kg) and a stone (mass 1 kg) are released simultaneously in vacuum at time t0 from a height h above the ground. Which body lands on the ground first (time t1)?"
/ options = ("~nAll objects reach the ground at the same time t1.~n",
            "~nThe spring lands at time t1.~n",
            "~nThe apple lands at time t1.~n",
            "~nThe stone lands at time t1.~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>

*********************

<radiobuttons ING_tcm_002b>
/ caption = "A football with a mass of 0.4 kg is dropped in a vacuum. The ball falls from a height of h₁ = 10 m to the ground (h₂ = 0 m). What is its potential energy before the fall?"
/ options = ("~n40 Nm~n",
            "~n50 Nm~n",
            "~n60 Nm~n",
            "~n70 Nmn~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>


*********************

<radiobuttons ING_tcm_002c>
/ caption = "A stone (1 kg) and a spring (0.005 kg) are dropped simultaneously in a vacuum. The stone is dropped from a 30 cm higher position than the spring. Does the stone catch the spring before it touches the ground?"
/ options = ("~nNo.~n",
            "~nYes.~n",
            "~nBoth arrive at the bottom at the same time.~n",
            "~nThis can only be analyzed if the initial heights are known.~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>


*********************

<radiobuttons ING_tcm_002d>
/ caption = "What is the trend of the speed of fall from free fall?"
/ options = ("~nLinear~n",
            "~nSquare~n",
            "~nRemains constant~n",
            "~nIndeterminable~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>


*********************

<radiobuttons ING_tcm_002e>
/ caption = "From a pistol, a bullet is shot upwards in a vacuum. Before it is shot, the bullet has a kinetic energy of 350 Nm. How much potential energy does the bullet have at the highest point of flight?"
/ options = ("~n350 Nm potential energy~n",
            "~n0 Nm potential energy~n",
            "~n35 Nm potential energy~n",
            "~n175 Nm potential energy~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>

*********************

<radiobuttons ING_tcm_002f>
/ caption = "From a pistol, a bullet is shot upwards in a vacuum. The bullet is shot upwards at 30,000 m/s and returns to the firing point after 1 minute. How big is the kinetic energy of the ball when it arrives back at the starting point?"
/ options = ("~nJust as large as at the time of firing.~n",
            "~nLess than at the time of firing.~n",
            "~nGreater than at the time of firing.~n",
            "~nNo statement can be made about this.~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>


###################
# survey pages
###################

<surveypage p_ING_tcm_002a>
/ questions = [1 = ING_tcm_002a]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002b>
/ questions = [1 = ING_tcm_002b]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002c>
/ questions = [1 = ING_tcm_002c]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002d>
/ questions = [1 = ING_tcm_002d]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002e>
/ questions = [1 = ING_tcm_002e]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002f>
/ questions = [1 = ING_tcm_002f]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>


###################
# total testlet
###################

<survey ING_tcm_002_tex_en>
/ pages = [1=p_ING_tcm_002a; 2=p_ING_tcm_002b; 3=p_ING_tcm_002c; 4=p_ING_tcm_002d; 5=p_ING_tcm_002e; 6=p_ING_tcm_002f]
/ showbackbutton=false
/ finishlabel = "Continue"
/ nextlabel = "Continue"
/ screencolor = white
</survey>


Now I would like to add that after that test, the participant gets a feedback in the form of: "You have solved ...% of the items." or "You have solved 4 out of 6 items correctly" or something like that.
Is that possible?

Thank you in advance!

best, Nash
By Dave - 1/30/2020

nash - 1/30/2020
Hello together, I've come across a problem, and I would be very glad if somebody could help me out to solve it. 

This is my syntax for one test, with 6 items. Every item is a multiple choice item with 4 options and only one is correct.

####################################################################################################
#
# TESTLET ING_tcm_002_tex_en
#
####################################################################################################


###################
# Testletstamm
###################

<html st_ING_tcm_002_tex_en>
/ items = ("Stamm_ING_tcm_002_tex_en.base64.html")
/ position = (0%,50%)
/ showborders = false
/ showscrollbars = True
/ size = (100%,100%)
</html>


###################
# Items
###################


<radiobuttons ING_tcm_002a>
/ caption = "A spring (mass 0,005 kg), an apple (mass 0,25 kg) and a stone (mass 1 kg) are released simultaneously in vacuum at time t0 from a height h above the ground. Which body lands on the ground first (time t1)?"
/ options = ("~nAll objects reach the ground at the same time t1.~n",
            "~nThe spring lands at time t1.~n",
            "~nThe apple lands at time t1.~n",
            "~nThe stone lands at time t1.~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>

*********************

<radiobuttons ING_tcm_002b>
/ caption = "A football with a mass of 0.4 kg is dropped in a vacuum. The ball falls from a height of h₁ = 10 m to the ground (h₂ = 0 m). What is its potential energy before the fall?"
/ options = ("~n40 Nm~n",
            "~n50 Nm~n",
            "~n60 Nm~n",
            "~n70 Nmn~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>


*********************

<radiobuttons ING_tcm_002c>
/ caption = "A stone (1 kg) and a spring (0.005 kg) are dropped simultaneously in a vacuum. The stone is dropped from a 30 cm higher position than the spring. Does the stone catch the spring before it touches the ground?"
/ options = ("~nNo.~n",
            "~nYes.~n",
            "~nBoth arrive at the bottom at the same time.~n",
            "~nThis can only be analyzed if the initial heights are known.~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>


*********************

<radiobuttons ING_tcm_002d>
/ caption = "What is the trend of the speed of fall from free fall?"
/ options = ("~nLinear~n",
            "~nSquare~n",
            "~nRemains constant~n",
            "~nIndeterminable~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>


*********************

<radiobuttons ING_tcm_002e>
/ caption = "From a pistol, a bullet is shot upwards in a vacuum. Before it is shot, the bullet has a kinetic energy of 350 Nm. How much potential energy does the bullet have at the highest point of flight?"
/ options = ("~n350 Nm potential energy~n",
            "~n0 Nm potential energy~n",
            "~n35 Nm potential energy~n",
            "~n175 Nm potential energy~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>

*********************

<radiobuttons ING_tcm_002f>
/ caption = "From a pistol, a bullet is shot upwards in a vacuum. The bullet is shot upwards at 30,000 m/s and returns to the firing point after 1 minute. How big is the kinetic energy of the ball when it arrives back at the starting point?"
/ options = ("~nJust as large as at the time of firing.~n",
            "~nLess than at the time of firing.~n",
            "~nGreater than at the time of firing.~n",
            "~nNo statement can be made about this.~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>


###################
# survey pages
###################

<surveypage p_ING_tcm_002a>
/ questions = [1 = ING_tcm_002a]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002b>
/ questions = [1 = ING_tcm_002b]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002c>
/ questions = [1 = ING_tcm_002c]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002d>
/ questions = [1 = ING_tcm_002d]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002e>
/ questions = [1 = ING_tcm_002e]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002f>
/ questions = [1 = ING_tcm_002f]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>


###################
# total testlet
###################

<survey ING_tcm_002_tex_en>
/ pages = [1=p_ING_tcm_002a; 2=p_ING_tcm_002b; 3=p_ING_tcm_002c; 4=p_ING_tcm_002d; 5=p_ING_tcm_002e; 6=p_ING_tcm_002f]
/ showbackbutton=false
/ finishlabel = "Continue"
/ nextlabel = "Continue"
/ screencolor = white
</survey>


Now I would like to add that after that test, the participant gets a feedback in the form of: "You have solved ...% of the items." or "You have solved 4 out of 6 items correctly" or something like that.
Is that possible?

Thank you in advance!

best, Nash

Yes, you can do so using <values> and a bit of /ontrialend logic in your <surveypage>s.

###################
# survey pages
###################

<values>
/ correctsum = 0
</values>

<surveypage p_ING_tcm_002a>
/ ontrialend = [
    if (radiobuttons.ING_tcm_002a.response == "1") {
        values.correctsum += 1;
    }
]
/ questions = [1 = ING_tcm_002a]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002b>
/ ontrialend = [
    if (radiobuttons.ING_tcm_002b.response == "1") {
        values.correctsum += 1;
    }
]
/ questions = [1 = ING_tcm_002b]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002c>
/ ontrialend = [
    if (radiobuttons.ING_tcm_002c.response == "1") {
        values.correctsum += 1;
    }
]
/ questions = [1 = ING_tcm_002c]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002d>
/ ontrialend = [
    if (radiobuttons.ING_tcm_002d.response == "1") {
        values.correctsum += 1;
    }
]
/ questions = [1 = ING_tcm_002d]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002e>
/ ontrialend = [
    if (radiobuttons.ING_tcm_002e.response == "1") {
        values.correctsum += 1;
    }
]
/ questions = [1 = ING_tcm_002e]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002f>
/ ontrialend = [
    if (radiobuttons.ING_tcm_002f.response == "1") {
        values.correctsum += 1;
    }
]
/ questions = [1 = ING_tcm_002f]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage end>
/ caption = "You have solved <%values.correctsum%> out of 6 items correctly."
</surveypage>


###################
# total testlet
###################

<survey ING_tcm_002_tex_en>
/ pages = [1=p_ING_tcm_002a; 2=p_ING_tcm_002b; 3=p_ING_tcm_002c; 4=p_ING_tcm_002d; 5=p_ING_tcm_002e; 6=p_ING_tcm_002f; 7=end]
/ showbackbutton=false
/ finishlabel = "Continue"
/ nextlabel = "Continue"
/ screencolor = white
</survey>
By nash - 1/30/2020

Dave - 1/30/2020
nash - 1/30/2020
Hello together, I've come across a problem, and I would be very glad if somebody could help me out to solve it. 

This is my syntax for one test, with 6 items. Every item is a multiple choice item with 4 options and only one is correct.

####################################################################################################
#
# TESTLET ING_tcm_002_tex_en
#
####################################################################################################


###################
# Testletstamm
###################

<html st_ING_tcm_002_tex_en>
/ items = ("Stamm_ING_tcm_002_tex_en.base64.html")
/ position = (0%,50%)
/ showborders = false
/ showscrollbars = True
/ size = (100%,100%)
</html>


###################
# Items
###################


<radiobuttons ING_tcm_002a>
/ caption = "A spring (mass 0,005 kg), an apple (mass 0,25 kg) and a stone (mass 1 kg) are released simultaneously in vacuum at time t0 from a height h above the ground. Which body lands on the ground first (time t1)?"
/ options = ("~nAll objects reach the ground at the same time t1.~n",
            "~nThe spring lands at time t1.~n",
            "~nThe apple lands at time t1.~n",
            "~nThe stone lands at time t1.~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>

*********************

<radiobuttons ING_tcm_002b>
/ caption = "A football with a mass of 0.4 kg is dropped in a vacuum. The ball falls from a height of h₁ = 10 m to the ground (h₂ = 0 m). What is its potential energy before the fall?"
/ options = ("~n40 Nm~n",
            "~n50 Nm~n",
            "~n60 Nm~n",
            "~n70 Nmn~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>


*********************

<radiobuttons ING_tcm_002c>
/ caption = "A stone (1 kg) and a spring (0.005 kg) are dropped simultaneously in a vacuum. The stone is dropped from a 30 cm higher position than the spring. Does the stone catch the spring before it touches the ground?"
/ options = ("~nNo.~n",
            "~nYes.~n",
            "~nBoth arrive at the bottom at the same time.~n",
            "~nThis can only be analyzed if the initial heights are known.~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>


*********************

<radiobuttons ING_tcm_002d>
/ caption = "What is the trend of the speed of fall from free fall?"
/ options = ("~nLinear~n",
            "~nSquare~n",
            "~nRemains constant~n",
            "~nIndeterminable~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>


*********************

<radiobuttons ING_tcm_002e>
/ caption = "From a pistol, a bullet is shot upwards in a vacuum. Before it is shot, the bullet has a kinetic energy of 350 Nm. How much potential energy does the bullet have at the highest point of flight?"
/ options = ("~n350 Nm potential energy~n",
            "~n0 Nm potential energy~n",
            "~n35 Nm potential energy~n",
            "~n175 Nm potential energy~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>

*********************

<radiobuttons ING_tcm_002f>
/ caption = "From a pistol, a bullet is shot upwards in a vacuum. The bullet is shot upwards at 30,000 m/s and returns to the firing point after 1 minute. How big is the kinetic energy of the ball when it arrives back at the starting point?"
/ options = ("~nJust as large as at the time of firing.~n",
            "~nLess than at the time of firing.~n",
            "~nGreater than at the time of firing.~n",
            "~nNo statement can be made about this.~n")
/ optionvalues = ("1","2","3", "4")
/ position = (55%,10%)
/ required = false
/ validresponse = ("1","2","3","4")
/ correctresponse = ("1")
/ responsefontstyle = ("Arial", 1.5%)
/ fontstyle = ("Arial", 1.5%)
/ order = random
</radiobuttons>


###################
# survey pages
###################

<surveypage p_ING_tcm_002a>
/ questions = [1 = ING_tcm_002a]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002b>
/ questions = [1 = ING_tcm_002b]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002c>
/ questions = [1 = ING_tcm_002c]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002d>
/ questions = [1 = ING_tcm_002d]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002e>
/ questions = [1 = ING_tcm_002e]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002f>
/ questions = [1 = ING_tcm_002f]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>


###################
# total testlet
###################

<survey ING_tcm_002_tex_en>
/ pages = [1=p_ING_tcm_002a; 2=p_ING_tcm_002b; 3=p_ING_tcm_002c; 4=p_ING_tcm_002d; 5=p_ING_tcm_002e; 6=p_ING_tcm_002f]
/ showbackbutton=false
/ finishlabel = "Continue"
/ nextlabel = "Continue"
/ screencolor = white
</survey>


Now I would like to add that after that test, the participant gets a feedback in the form of: "You have solved ...% of the items." or "You have solved 4 out of 6 items correctly" or something like that.
Is that possible?

Thank you in advance!

best, Nash

Yes, you can do so using <values> and a bit of /ontrialend logic in your <surveypage>s.

###################
# survey pages
###################

<values>
/ correctsum = 0
</values>

<surveypage p_ING_tcm_002a>
/ ontrialend = [
    if (radiobuttons.ING_tcm_002a.response == "1") {
        values.correctsum += 1;
    }
]
/ questions = [1 = ING_tcm_002a]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002b>
/ ontrialend = [
    if (radiobuttons.ING_tcm_002b.response == "1") {
        values.correctsum += 1;
    }
]
/ questions = [1 = ING_tcm_002b]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002c>
/ ontrialend = [
    if (radiobuttons.ING_tcm_002c.response == "1") {
        values.correctsum += 1;
    }
]
/ questions = [1 = ING_tcm_002c]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002d>
/ ontrialend = [
    if (radiobuttons.ING_tcm_002d.response == "1") {
        values.correctsum += 1;
    }
]
/ questions = [1 = ING_tcm_002d]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002e>
/ ontrialend = [
    if (radiobuttons.ING_tcm_002e.response == "1") {
        values.correctsum += 1;
    }
]
/ questions = [1 = ING_tcm_002e]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage p_ING_tcm_002f>
/ ontrialend = [
    if (radiobuttons.ING_tcm_002f.response == "1") {
        values.correctsum += 1;
    }
]
/ questions = [1 = ING_tcm_002f]
/ stimulustimes = [1 = st_ING_tcm_002_tex_en; 1 = timer; 1 = timertext]
</surveypage>

<surveypage end>
/ caption = "You have solved <%values.correctsum%> out of 6 items correctly."
</surveypage>


###################
# total testlet
###################

<survey ING_tcm_002_tex_en>
/ pages = [1=p_ING_tcm_002a; 2=p_ING_tcm_002b; 3=p_ING_tcm_002c; 4=p_ING_tcm_002d; 5=p_ING_tcm_002e; 6=p_ING_tcm_002f; 7=end]
/ showbackbutton=false
/ finishlabel = "Continue"
/ nextlabel = "Continue"
/ screencolor = white
</survey>

Thank you so much! You saved my day!