﻿<?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 5  » correct responses for checkboxes</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 02 Jul 2026 22:21:22 GMT</lastBuildDate><ttl>20</ttl><item><title>correct responses for checkboxes</title><link>https://forums.millisecond.com/Topic20409.aspx</link><description>Hi! &amp;nbsp;I'm having trouble with checkboxes. &amp;nbsp;My checkbox question shows up fine with the correct options but every answer that I select is labeled as incorrect and I'm not able to continue past this point. I want the subject to not be able to continue until they are correct. &amp;nbsp;Here is my code. &amp;nbsp;Many thanks!!! &amp;nbsp;~Lauren&lt;br/&gt;&lt;br/&gt;&amp;lt;checkboxes task&amp;gt;&lt;br/&gt;/ caption = "What is your task?"&lt;br/&gt;/ range = (1,1)&lt;br/&gt;/ required = true&lt;br/&gt;/ options = ("To respond for each picture of a dog", "To respond whether a picture is rotated or not","To respond when a picture is black and white or color")&lt;br/&gt;/ optionvalues = ("1", "2", "3")&lt;br/&gt;/ validresponse=("1", "2", "3")&lt;br/&gt;/ correctresponse = ("2")&lt;br/&gt;&amp;lt;/checkboxes&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage taskQ1&amp;gt;&lt;br/&gt;/ caption = "Please answer the following questions about your ask. You cannot start the experiment until you get these correct."&lt;br/&gt;/ fontstyle = ("Verdana", -18, true, false, false, false, 5, 0)&lt;br/&gt;/ showquestionnumbers = true&lt;br/&gt;/ questions = [1=task]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;survey taskQuestionnaire&amp;gt;&lt;br/&gt;/ pages = [1=taskQ1]&lt;br/&gt;/ responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0)&lt;br/&gt;/ itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0)&lt;br/&gt;/ itemspacing = 4%&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Sat, 31 Dec 2016 09:50:23 GMT</pubDate><dc:creator>laurenemberson</dc:creator></item><item><title>RE: correct responses for checkboxes</title><link>https://forums.millisecond.com/Topic20415.aspx</link><description>&lt;div data-id="20412" class="if-quote-wrapper" unselectable="on" data-guid="1483206596611"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20412" 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="20412" 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="20412" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, December 30, 2016&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20412"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20411" class="if-quote-wrapper" unselectable="on" data-guid="1483206596611"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20411" 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="20411" 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="20411" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;laurenemberson - Friday, December 30, 2016&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20411"&gt;&lt;div class="if-quote-message-margin"&gt;#2: "I want the subject to not be able to continue until they are correct." &amp;lt;- This needs to be fleshed out more. Suppose the subject gives a wrong response, then what is supposed to happen? Do you want to display the same page / question again? Or do you want something else to happen (what)?&lt;br/&gt;&lt;br/&gt;&amp;gt; if they give a wrong response, I want the same question/page to be displayed again again and for that to be repeated until they get the correct response.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Further question, from the radiobutton code that you have, there is a correct answer coded but I'm not sure what that is doing. &amp;nbsp;When I get the survey data, it contains the response but there is no coding about whether it was the correct or incorrect response.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Much appreciated!&lt;a class="if-quote-goto quote-link" href="#" data-id="20411"&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;&amp;gt; if they give a wrong response, I want the same question/page to be displayed again again and for that to be repeated until they get the correct response. &lt;br/&gt;&lt;br/&gt;Okay, thanks for the clarification. This is what the code in my previous reply already does, so I don't think any further elaboration is necessary.&lt;br/&gt;&lt;br/&gt;&amp;gt; Further question, from the radiobutton code that you have, there is a correct answer coded but I'm not sure what that is doing. &amp;nbsp;When I get the survey data, it contains the &lt;br/&gt;&amp;gt; response but there is no coding about whether it was the correct or incorrect response. &lt;br/&gt;&lt;br/&gt;The data format for &amp;lt;survey&amp;gt; elements is different than the date format for regular &amp;lt;block&amp;gt;s. In survey-data, there is no "correct" column. You can see what the /correctresponse code does when running the page via a &amp;lt;block&amp;gt; instead:&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons task&amp;gt;&lt;br/&gt;/ caption = "What is your task?"&lt;br/&gt;/ required = true&lt;br/&gt;/ options = ("To respond for each picture of a dog", "To respond whether a picture is rotated or not","To respond when a picture is black and white or color")&lt;br/&gt;/ optionvalues = ("1", "2", "3")&lt;br/&gt;/ validresponse=("1", "2", "3")&lt;br/&gt;/ correctresponse = ("2")&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage taskQ1&amp;gt;&lt;br/&gt;/ caption = "Please answer the following questions about your ask. You cannot start the experiment until you get these correct."&lt;br/&gt;/ fontstyle = ("Verdana", -18, true, false, false, false, 5, 0)&lt;br/&gt;/ responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0)&lt;br/&gt;/ itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0)&lt;br/&gt;/ itemspacing = 4%&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ showquestionnumbers = true&lt;br/&gt;/ questions = [1=task]&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(radiobuttons.task.response != "2") surveypage.taskQ1&lt;br/&gt;]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block taskQuestionnaire&amp;gt;&lt;br/&gt;/ trials = [1=taskQ1]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20412"&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;Thanks so much Dave! I have everything working now. &amp;nbsp;I appreciate your help very much! &amp;nbsp;</description><pubDate>Sat, 31 Dec 2016 09:50:23 GMT</pubDate><dc:creator>laurenemberson</dc:creator></item><item><title>RE: correct responses for checkboxes</title><link>https://forums.millisecond.com/Topic20412.aspx</link><description>&lt;div data-id="20411" class="if-quote-wrapper" unselectable="on" data-guid="1483141007706"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20411" 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="20411" 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="20411" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;laurenemberson - Friday, December 30, 2016&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20411"&gt;&lt;div class="if-quote-message-margin"&gt;#2: "I want the subject to not be able to continue until they are correct." &amp;lt;- This needs to be fleshed out more. Suppose the subject gives a wrong response, then what is supposed to happen? Do you want to display the same page / question again? Or do you want something else to happen (what)?&lt;br/&gt;&lt;br/&gt;&amp;gt; if they give a wrong response, I want the same question/page to be displayed again again and for that to be repeated until they get the correct response.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Further question, from the radiobutton code that you have, there is a correct answer coded but I'm not sure what that is doing. &amp;nbsp;When I get the survey data, it contains the response but there is no coding about whether it was the correct or incorrect response.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Much appreciated!&lt;a class="if-quote-goto quote-link" href="#" data-id="20411"&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;&amp;gt; if they give a wrong response, I want the same question/page to be displayed again again and for that to be repeated until they get the correct response. &lt;br/&gt;&lt;br/&gt;Okay, thanks for the clarification. This is what the code in my previous reply already does, so I don't think any further elaboration is necessary.&lt;br/&gt;&lt;br/&gt;&amp;gt; Further question, from the radiobutton code that you have, there is a correct answer coded but I'm not sure what that is doing. &amp;nbsp;When I get the survey data, it contains the &lt;br/&gt;&amp;gt; response but there is no coding about whether it was the correct or incorrect response. &lt;br/&gt;&lt;br/&gt;The data format for &amp;lt;survey&amp;gt; elements is different than the date format for regular &amp;lt;block&amp;gt;s. In survey-data, there is no "correct" column. You can see what the /correctresponse code does when running the page via a &amp;lt;block&amp;gt; instead:&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons task&amp;gt;&lt;br/&gt;/ caption = "What is your task?"&lt;br/&gt;/ required = true&lt;br/&gt;/ options = ("To respond for each picture of a dog", "To respond whether a picture is rotated or not","To respond when a picture is black and white or color")&lt;br/&gt;/ optionvalues = ("1", "2", "3")&lt;br/&gt;/ validresponse=("1", "2", "3")&lt;br/&gt;/ correctresponse = ("2")&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage taskQ1&amp;gt;&lt;br/&gt;/ caption = "Please answer the following questions about your ask. You cannot start the experiment until you get these correct."&lt;br/&gt;/ fontstyle = ("Verdana", -18, true, false, false, false, 5, 0)&lt;br/&gt;/ responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0)&lt;br/&gt;/ itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0)&lt;br/&gt;/ itemspacing = 4%&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ showquestionnumbers = true&lt;br/&gt;/ questions = [1=task]&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(radiobuttons.task.response != "2") surveypage.taskQ1&lt;br/&gt;]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block taskQuestionnaire&amp;gt;&lt;br/&gt;/ trials = [1=taskQ1]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;</description><pubDate>Fri, 30 Dec 2016 15:41:42 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: correct responses for checkboxes</title><link>https://forums.millisecond.com/Topic20411.aspx</link><description>#2: "I want the subject to not be able to continue until they are correct." &amp;lt;- This needs to be fleshed out more. Suppose the subject gives a wrong response, then what is supposed to happen? Do you want to display the same page / question again? Or do you want something else to happen (what)?&lt;br/&gt;&lt;br/&gt;&amp;gt; if they give a wrong response, I want the same question/page to be displayed again again and for that to be repeated until they get the correct response.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Further question, from the radiobutton code that you have, there is a correct answer coded but I'm not sure what that is doing. &amp;nbsp;When I get the survey data, it contains the response but there is no coding about whether it was the correct or incorrect response.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Much appreciated!</description><pubDate>Fri, 30 Dec 2016 13:09:17 GMT</pubDate><dc:creator>laurenemberson</dc:creator></item><item><title>RE: correct responses for checkboxes</title><link>https://forums.millisecond.com/Topic20410.aspx</link><description>&lt;div data-id="20409" class="if-quote-wrapper" unselectable="on" data-guid="1483122093517"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20409" 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="20409" 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="20409" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;laurenemberson - Friday, December 30, 2016&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20409"&gt;&lt;div class="if-quote-message-margin"&gt;Hi! &amp;nbsp;I'm having trouble with checkboxes. &amp;nbsp;My checkbox question shows up fine with the correct options but every answer that I select is labeled as incorrect and I'm not able to continue past this point. I want the subject to not be able to continue until they are correct. &amp;nbsp;Here is my code. &amp;nbsp;Many thanks!!! &amp;nbsp;~Lauren&lt;br/&gt;&lt;br/&gt;&amp;lt;checkboxes task&amp;gt;&lt;br/&gt;/ caption = "What is your task?"&lt;br/&gt;/ range = (1,1)&lt;br/&gt;/ required = true&lt;br/&gt;/ options = ("To respond for each picture of a dog", "To respond whether a picture is rotated or not","To respond when a picture is black and white or color")&lt;br/&gt;/ optionvalues = ("1", "2", "3")&lt;br/&gt;/ validresponse=("1", "2", "3")&lt;br/&gt;/ correctresponse = ("2")&lt;br/&gt;&amp;lt;/checkboxes&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage taskQ1&amp;gt;&lt;br/&gt;/ caption = "Please answer the following questions about your ask. You cannot start the experiment until you get these correct."&lt;br/&gt;/ fontstyle = ("Verdana", -18, true, false, false, false, 5, 0)&lt;br/&gt;/ showquestionnumbers = true&lt;br/&gt;/ questions = [1=task]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;survey taskQuestionnaire&amp;gt;&lt;br/&gt;/ pages = [1=taskQ1]&lt;br/&gt;/ responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0)&lt;br/&gt;/ itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0)&lt;br/&gt;/ itemspacing = 4%&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20409"&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;#1: I don't think &amp;lt;checkboxes&amp;gt; are the appropriate question-type here. They allow for selecting multiple options, while -- if I understand your intent correctly -- you only want the participant to select a single one. &amp;lt;radiobuttons&amp;gt; would be a better fit then.&lt;br/&gt;&lt;br/&gt;#2:  "I want the subject to not be able to continue until they are correct." &amp;lt;- This needs to be fleshed out more. Suppose the subject gives a wrong response, then what is supposed to happen? Do you want to display the same page / question again? Or do you want something else to happen (what)?&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons task&amp;gt;&lt;br/&gt;/ caption = "What is your task?"&lt;br/&gt;/ required = true&lt;br/&gt;/ options = ("To respond for each picture of a dog", "To respond whether a picture is rotated or not","To respond when a picture is black and white or color")&lt;br/&gt;/ optionvalues = ("1", "2", "3")&lt;br/&gt;/ validresponse=("1", "2", "3")&lt;br/&gt;/ correctresponse = ("2")&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage taskQ1&amp;gt;&lt;br/&gt;/ caption = "Please answer the following questions about your ask. You cannot start the experiment until you get these correct."&lt;br/&gt;/ fontstyle = ("Verdana", -18, true, false, false, false, 5, 0)&lt;br/&gt;/ showquestionnumbers = true&lt;br/&gt;/ questions = [1=task]&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(radiobuttons.task.response != "2") surveypage.taskQ1&lt;br/&gt;]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;survey taskQuestionnaire&amp;gt;&lt;br/&gt;/ pages = [1=taskQ1]&lt;br/&gt;/ responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0)&lt;br/&gt;/ itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0)&lt;br/&gt;/ itemspacing = 4%&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ showbackbutton = false&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;br/&gt;</description><pubDate>Fri, 30 Dec 2016 10:30:41 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>