﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » use of / correctresponse element</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 03 Apr 2026 18:40:47 GMT</lastBuildDate><ttl>20</ttl><item><title>use of / correctresponse element</title><link>https://forums.millisecond.com/Topic20733.aspx</link><description>Hello! I want to ask people a number of questions, and if they answer correctly 5 times in a row, the questions end. If they keep giving wrong answers, they will get more questions. I used the&amp;nbsp;/ correctresponse element, but it doesn't seem to match the question and response (so if item 1 from the questions is asked, it does not recognize that item 1 from the answers would be correct). How do I fix this?&lt;br/&gt;&lt;br/&gt;Also, while I am at it... I would like to add a feedback-message after their answer, telling them if their answer is correct or not. How do I do that? Thanks already!&lt;br/&gt;&lt;br/&gt;&amp;lt;item QuizQuestionItem&amp;gt;&lt;br/&gt;/1 = "Imagine, you are Player A and decide to give 10 tokens. Player B gives 10 tokens."&lt;br/&gt;/2 = "Imagine, you are Player A and decide to give 0 tokens. Player B gives 0 tokens."&lt;br/&gt;/3 = "Imagine, you are Player A and decide to give 3 tokens. Player B gives 0 tokens."&lt;br/&gt;/4 = "Imagine, you are Player A and decide to give 7 tokens. Player B gives 10 tokens."&lt;br/&gt;/5 = "Imagine, you are Player A and decide to give 0 tokens. Player B gives 2 tokens."&lt;br/&gt;/6 = "Imagine, you are Player A and decide to give 10 tokens. Player B gives 8 tokens."&lt;br/&gt;/7 = "Imagine, you are Player A and decide to give 8 tokens. Player B gives 7 tokens."&lt;br/&gt;/8 = "Imagine, you are Player A and decide to give 2 tokens. Player B gives 3 tokens."&lt;br/&gt;/9 = "Imagine, you are Player A and decide to give 5 tokens. Player B gives 5 tokens."&lt;br/&gt;/10 = "Imagine, you are Player A and decide to give 5 tokens. Player B gives 9 tokens."&lt;br/&gt;/11 = "Imagine, you are Player A and decide to give 9 tokens. Player B gives 5 tokens."&lt;br/&gt;/12 = "Imagine, you are Player A and decide to give 1 tokens. Player B gives 1 tokens."&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item QuizCorrectAnswer&amp;gt;&lt;br/&gt;/1 = "20"&lt;br/&gt;/2 = "10"&lt;br/&gt;/3 = "7"&lt;br/&gt;/4 = "23"&lt;br/&gt;/5 = "14"&lt;br/&gt;/6 = "16"&lt;br/&gt;/7 = "16"&lt;br/&gt;/8 = "14"&lt;br/&gt;/9 = "15"&lt;br/&gt;/10 = "23"&lt;br/&gt;/11 = "11"&lt;br/&gt;/12 = "11"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text QuizScenario&amp;gt;&lt;br/&gt;/items = QuizQuestionItem&lt;br/&gt;/ position = (50, 30)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text QuizCorrectAnswer&amp;gt;&lt;br/&gt;/items = QuizCorrectAnswer&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;openended QuizQuestion&amp;gt;&lt;br/&gt;/ stimulusframes= [1=QuizScenario; 2=initialstext]&lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (60,20)&lt;br/&gt;/ charlimit = 2&lt;br/&gt;/ linelength = 40&lt;br/&gt;/ numlines = 3&lt;br/&gt;/ mask = positiveinteger&lt;br/&gt;/ correctresponse= (QuizCorrectAnswer)&lt;br/&gt;/ validresponse = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30")&lt;br/&gt;/ branch=[if (openended.QuizQuestion.correctstreak &amp;gt;= 5) notrial]&lt;br/&gt;/ branch=[if (openended.QuizQuestion.correctstreak &amp;lt; 5) openended.quizquestion]&lt;br/&gt;&amp;lt;/openended&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text initialstext&amp;gt;&lt;br/&gt;/items = ("How many tokens do you have at the end of this round?")&lt;br/&gt;/fontstyle = ("Calibri", 16pt)&lt;br/&gt;/position = (50,40)&lt;br/&gt;/txbgcolor = (transparent)&lt;br/&gt;/halign = center&lt;br/&gt;/select = sequence&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Quiz&amp;gt;&lt;br/&gt;/ trials = [1= IntruQuiz; 2-31=QuizQuestion]&lt;br/&gt;&amp;lt;/block&amp;gt;</description><pubDate>Wed, 15 Feb 2017 08:47:44 GMT</pubDate><dc:creator>JuliaNo</dc:creator></item><item><title>RE: use of / correctresponse element</title><link>https://forums.millisecond.com/Topic20737.aspx</link><description>&lt;div data-id="20735" class="if-quote-wrapper" unselectable="on" data-guid="1487177255110"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20735" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="20735" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="20735" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, February 15, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20735"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20733" class="if-quote-wrapper" unselectable="on" data-guid="1487177255110"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20733" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="20733" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="20733" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaNo - Wednesday, February 15, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20733"&gt;&lt;div class="if-quote-message-margin"&gt;Hello! I want to ask people a number of questions, and if they answer correctly 5 times in a row, the questions end. If they keep giving wrong answers, they will get more questions. I used the&amp;nbsp;/ correctresponse element, but it doesn't seem to match the question and response (so if item 1 from the questions is asked, it does not recognize that item 1 from the answers would be correct). How do I fix this?&lt;br/&gt;&lt;br/&gt;Also, while I am at it... I would like to add a feedback-message after their answer, telling them if their answer is correct or not. How do I do that? Thanks already!&lt;br/&gt;&lt;br/&gt;&amp;lt;item QuizQuestionItem&amp;gt;&lt;br/&gt;/1 = "Imagine, you are Player A and decide to give 10 tokens. Player B gives 10 tokens."&lt;br/&gt;/2 = "Imagine, you are Player A and decide to give 0 tokens. Player B gives 0 tokens."&lt;br/&gt;/3 = "Imagine, you are Player A and decide to give 3 tokens. Player B gives 0 tokens."&lt;br/&gt;/4 = "Imagine, you are Player A and decide to give 7 tokens. Player B gives 10 tokens."&lt;br/&gt;/5 = "Imagine, you are Player A and decide to give 0 tokens. Player B gives 2 tokens."&lt;br/&gt;/6 = "Imagine, you are Player A and decide to give 10 tokens. Player B gives 8 tokens."&lt;br/&gt;/7 = "Imagine, you are Player A and decide to give 8 tokens. Player B gives 7 tokens."&lt;br/&gt;/8 = "Imagine, you are Player A and decide to give 2 tokens. Player B gives 3 tokens."&lt;br/&gt;/9 = "Imagine, you are Player A and decide to give 5 tokens. Player B gives 5 tokens."&lt;br/&gt;/10 = "Imagine, you are Player A and decide to give 5 tokens. Player B gives 9 tokens."&lt;br/&gt;/11 = "Imagine, you are Player A and decide to give 9 tokens. Player B gives 5 tokens."&lt;br/&gt;/12 = "Imagine, you are Player A and decide to give 1 tokens. Player B gives 1 tokens."&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item QuizCorrectAnswer&amp;gt;&lt;br/&gt;/1 = "20"&lt;br/&gt;/2 = "10"&lt;br/&gt;/3 = "7"&lt;br/&gt;/4 = "23"&lt;br/&gt;/5 = "14"&lt;br/&gt;/6 = "16"&lt;br/&gt;/7 = "16"&lt;br/&gt;/8 = "14"&lt;br/&gt;/9 = "15"&lt;br/&gt;/10 = "23"&lt;br/&gt;/11 = "11"&lt;br/&gt;/12 = "11"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text QuizScenario&amp;gt;&lt;br/&gt;/items = QuizQuestionItem&lt;br/&gt;/ position = (50, 30)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text QuizCorrectAnswer&amp;gt;&lt;br/&gt;/items = QuizCorrectAnswer&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;openended QuizQuestion&amp;gt;&lt;br/&gt;/ stimulusframes= [1=QuizScenario; 2=initialstext]&lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (60,20)&lt;br/&gt;/ charlimit = 2&lt;br/&gt;/ linelength = 40&lt;br/&gt;/ numlines = 3&lt;br/&gt;/ mask = positiveinteger&lt;br/&gt;/ correctresponse= (QuizCorrectAnswer)&lt;br/&gt;/ validresponse = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30")&lt;br/&gt;/ branch=[if (openended.QuizQuestion.correctstreak &amp;gt;= 5) notrial]&lt;br/&gt;/ branch=[if (openended.QuizQuestion.correctstreak &amp;lt; 5) openended.quizquestion]&lt;br/&gt;&amp;lt;/openended&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text initialstext&amp;gt;&lt;br/&gt;/items = ("How many tokens do you have at the end of this round?")&lt;br/&gt;/fontstyle = ("Calibri", 16pt)&lt;br/&gt;/position = (50,40)&lt;br/&gt;/txbgcolor = (transparent)&lt;br/&gt;/halign = center&lt;br/&gt;/select = sequence&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Quiz&amp;gt;&lt;br/&gt;/ trials = [1= IntruQuiz; 2-31=QuizQuestion]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20733"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You must use the /iscorrectresponse attribute, *not* /correctresponse. You must also properly *pair* the QuizScenario and QuizCorrectAnswer elements for this to work.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20735"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;See e.g. this example here: &lt;a href="https://www.millisecond.com/forums/FindPost11482.aspx"&gt;https://www.millisecond.com/forums/FindPost11482.aspx&lt;/a&gt;&lt;br/&gt;</description><pubDate>Wed, 15 Feb 2017 08:47:44 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: use of / correctresponse element</title><link>https://forums.millisecond.com/Topic20735.aspx</link><description>&lt;div data-id="20733" class="if-quote-wrapper" unselectable="on" data-guid="1487176596081"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20733" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="20733" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="20733" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaNo - Wednesday, February 15, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20733"&gt;&lt;div class="if-quote-message-margin"&gt;Hello! I want to ask people a number of questions, and if they answer correctly 5 times in a row, the questions end. If they keep giving wrong answers, they will get more questions. I used the&amp;nbsp;/ correctresponse element, but it doesn't seem to match the question and response (so if item 1 from the questions is asked, it does not recognize that item 1 from the answers would be correct). How do I fix this?&lt;br/&gt;&lt;br/&gt;Also, while I am at it... I would like to add a feedback-message after their answer, telling them if their answer is correct or not. How do I do that? Thanks already!&lt;br/&gt;&lt;br/&gt;&amp;lt;item QuizQuestionItem&amp;gt;&lt;br/&gt;/1 = "Imagine, you are Player A and decide to give 10 tokens. Player B gives 10 tokens."&lt;br/&gt;/2 = "Imagine, you are Player A and decide to give 0 tokens. Player B gives 0 tokens."&lt;br/&gt;/3 = "Imagine, you are Player A and decide to give 3 tokens. Player B gives 0 tokens."&lt;br/&gt;/4 = "Imagine, you are Player A and decide to give 7 tokens. Player B gives 10 tokens."&lt;br/&gt;/5 = "Imagine, you are Player A and decide to give 0 tokens. Player B gives 2 tokens."&lt;br/&gt;/6 = "Imagine, you are Player A and decide to give 10 tokens. Player B gives 8 tokens."&lt;br/&gt;/7 = "Imagine, you are Player A and decide to give 8 tokens. Player B gives 7 tokens."&lt;br/&gt;/8 = "Imagine, you are Player A and decide to give 2 tokens. Player B gives 3 tokens."&lt;br/&gt;/9 = "Imagine, you are Player A and decide to give 5 tokens. Player B gives 5 tokens."&lt;br/&gt;/10 = "Imagine, you are Player A and decide to give 5 tokens. Player B gives 9 tokens."&lt;br/&gt;/11 = "Imagine, you are Player A and decide to give 9 tokens. Player B gives 5 tokens."&lt;br/&gt;/12 = "Imagine, you are Player A and decide to give 1 tokens. Player B gives 1 tokens."&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item QuizCorrectAnswer&amp;gt;&lt;br/&gt;/1 = "20"&lt;br/&gt;/2 = "10"&lt;br/&gt;/3 = "7"&lt;br/&gt;/4 = "23"&lt;br/&gt;/5 = "14"&lt;br/&gt;/6 = "16"&lt;br/&gt;/7 = "16"&lt;br/&gt;/8 = "14"&lt;br/&gt;/9 = "15"&lt;br/&gt;/10 = "23"&lt;br/&gt;/11 = "11"&lt;br/&gt;/12 = "11"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text QuizScenario&amp;gt;&lt;br/&gt;/items = QuizQuestionItem&lt;br/&gt;/ position = (50, 30)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text QuizCorrectAnswer&amp;gt;&lt;br/&gt;/items = QuizCorrectAnswer&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;openended QuizQuestion&amp;gt;&lt;br/&gt;/ stimulusframes= [1=QuizScenario; 2=initialstext]&lt;br/&gt;/ position = (50, 50)&lt;br/&gt;/ size = (60,20)&lt;br/&gt;/ charlimit = 2&lt;br/&gt;/ linelength = 40&lt;br/&gt;/ numlines = 3&lt;br/&gt;/ mask = positiveinteger&lt;br/&gt;/ correctresponse= (QuizCorrectAnswer)&lt;br/&gt;/ validresponse = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30")&lt;br/&gt;/ branch=[if (openended.QuizQuestion.correctstreak &amp;gt;= 5) notrial]&lt;br/&gt;/ branch=[if (openended.QuizQuestion.correctstreak &amp;lt; 5) openended.quizquestion]&lt;br/&gt;&amp;lt;/openended&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text initialstext&amp;gt;&lt;br/&gt;/items = ("How many tokens do you have at the end of this round?")&lt;br/&gt;/fontstyle = ("Calibri", 16pt)&lt;br/&gt;/position = (50,40)&lt;br/&gt;/txbgcolor = (transparent)&lt;br/&gt;/halign = center&lt;br/&gt;/select = sequence&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Quiz&amp;gt;&lt;br/&gt;/ trials = [1= IntruQuiz; 2-31=QuizQuestion]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20733"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;You must use the /iscorrectresponse attribute, *not* /correctresponse. You must also properly *pair* the QuizScenario and QuizCorrectAnswer elements for this to work.&lt;br/&gt;</description><pubDate>Wed, 15 Feb 2017 08:38:13 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>