﻿<?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  » Multiple choice / open-ended with user feedback</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 12 Sep 2026 02:49:34 GMT</lastBuildDate><ttl>20</ttl><item><title>Multiple choice / open-ended with user feedback</title><link>https://forums.millisecond.com/Topic17004.aspx</link><description>Hello,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I'm trying to create a script that will present participants with a question, show their answer and a pre-defined 'correct' answer, and then ask the participant if they would like to repeat the question. I don't want the script to&amp;nbsp;delineate between correct and incorrect answers, but rather, ask the participant if their response was correct, and if not, to repeat the question.&amp;nbsp;The way I have done this is with two pages (eventually, two per question once I can get the first working). The first page presents the question, and the second contains the user-entered answer, a correct answer, and a yes-no radio box asking if the user would like to see the question again.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;My issue is with the second page. I have tried numerous ways of attempting to get it to output the user response in the first page, to no avail. I believe the issue might be that what I'm trying to do is impossible with surveypage elements?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Ideally, I'd like to create two identical tests performing this function; one multiple choice and the other open-ended. What changes / recommendations would allow me to do this?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;I've pasted my current code below.&lt;font size="1"&gt;&lt;br/&gt;------------Preamble------------&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (intro) &lt;br/&gt;/ blocks = [1=questions]&lt;br/&gt;/ postinstructions = (end)&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block questions&amp;gt;&lt;br/&gt;/ trials = [1-200=sequence(pg1a,pg1b)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/columns =[date time subject trialnum trialcode latency response]&lt;br/&gt;/format=tab&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/screencolor = (175, 255, 175)&lt;br/&gt;/font = ("Arial", -24, 700, 0, 49)&lt;br/&gt;/txbgcolor=(255,255,255)&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page intro&amp;gt;&lt;br/&gt;Hi. This is the opening page&lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page end&amp;gt;&lt;br/&gt;Here's the last page!&lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;-----Questions-----&lt;br/&gt;&lt;br/&gt;Question 1&lt;br/&gt;Question&lt;br/&gt;&lt;br/&gt;&amp;lt;item responsepg1&amp;gt;&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons pg1aq&amp;gt;&lt;br/&gt;/ caption = "Which is the correct answer?"&lt;br/&gt;/ options = (&lt;br/&gt;"A - Correct", &lt;br/&gt;"B - Incorrect",&lt;br/&gt;"C - Incorrect",&lt;br/&gt;"D - Incorrect",&lt;br/&gt;"Pass")&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons pg1bq&amp;gt;&lt;br/&gt;/ caption = "Would you like to repeat this question?"&lt;br/&gt;/ options = (&lt;br/&gt;"Yes", &lt;br/&gt;"No")&lt;br/&gt;/ optionvalues = ("0", "1")&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text pg1bt&amp;gt;&lt;br/&gt;/items = responsepg1&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;caption pg1af&amp;gt;&lt;br/&gt;/ caption = "You answered with '&amp;lt;% text.pg1bt.responsepg1, 1 %&amp;gt;'. The correct answer was A."&lt;br/&gt;&amp;lt;/caption&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Pages&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage pg1a&amp;gt;&lt;br/&gt;/ questions = [1=pg1aq] &lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ skip = [radiobuttons.pg1bq.response=="1"]&lt;br/&gt;/ ontrialend = [item.responsepg1.insertitem(radiobuttons.pg1aq.response, 1)]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage pg1b&amp;gt;&lt;br/&gt;/ questions = [1=pg1af; 2=pg1bq] &lt;br/&gt;/ skip = [radiobuttons.pg1bq.response=="1"]&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;/font&gt;&lt;br/&gt;</description><pubDate>Mon, 24 Aug 2015 07:10:48 GMT</pubDate><dc:creator>ibaxendine</dc:creator></item><item><title>RE: Multiple choice / open-ended with user feedback</title><link>https://forums.millisecond.com/Topic17008.aspx</link><description>Oh, thanks a lot! I didn't realise my issue had been so simple all along!</description><pubDate>Mon, 24 Aug 2015 07:10:48 GMT</pubDate><dc:creator>ibaxendine</dc:creator></item><item><title>RE: Multiple choice / open-ended with user feedback</title><link>https://forums.millisecond.com/Topic17007.aspx</link><description>This is not valid Inquisit syntax:&lt;br/&gt;&lt;br/&gt;&amp;lt;caption pg1af&amp;gt;&lt;br/&gt;/ caption = "You answered with&lt;strong&gt; '&amp;lt;% text.pg1bt.responsepg1, 1 %&amp;gt;&lt;/strong&gt;'. The correct answer was A."&lt;br/&gt;&amp;lt;/caption&amp;gt;&lt;br/&gt;&lt;br/&gt;The correct way to retrieve the 1st item in &amp;lt;text pg1bt&amp;gt; is &lt;br/&gt;&lt;br/&gt;&amp;lt;caption pg1af&amp;gt;&lt;br/&gt;/ caption = "You answered with &lt;strong&gt;'&amp;lt;% text.pg1bt.item(1) %&amp;gt;&lt;/strong&gt;'. The correct answer was A."&lt;br/&gt;&amp;lt;/caption&amp;gt;&lt;br/&gt;</description><pubDate>Mon, 24 Aug 2015 05:23:09 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>