﻿<?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  » Making the correct response to radiobuttons conditional</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:56:45 GMT</lastBuildDate><ttl>20</ttl><item><title>Making the correct response to radiobuttons conditional</title><link>https://forums.millisecond.com/Topic28911.aspx</link><description>Hi all,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I'm currently trying to create a thought suppression task where, at the beginning of each trial, participants are presented with a word that they have to avoid thinking about.&lt;br/&gt;&lt;br/&gt;I'd like to make catch trials where participants have to identify the word they were previously shown, from a list, at the end of the trial (to ensure they are paying attention). At the moment I'm using radiobuttons to achieve this.&lt;br/&gt;&lt;br/&gt;On each trial, the word is drawn from a list of items and so the correct radiobutton response on catch trials will be conditional. I'm not sure to to make this happen as radiobutton doesn't have the /iscorrectresponse option.&lt;br/&gt;&lt;br/&gt;Here's the relevant parts of the script I have so far:&lt;br/&gt;&lt;br/&gt;&amp;lt;item CatchTrialItems&amp;gt;&lt;br/&gt;/1 = "Dog"&lt;br/&gt;/2 = "Cat"&lt;br/&gt;/3 = "Bird"&lt;br/&gt;/4 = "Fish"&lt;br/&gt;/5 = "Horse"&lt;br/&gt;/6 = "Spoon"&lt;br/&gt;/7 = "Table"&lt;br/&gt;/8 = "Chair"&lt;br/&gt;/9 = "Desk"&lt;br/&gt;/10 = "Lamp"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text CatchTrialText&amp;gt;&lt;br/&gt;/ items = CatchTrialItems&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ halign = center&lt;br/&gt;/ valign = center&lt;br/&gt;/ select = noreplacenorepeat&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text ThoughtSuppInstuctCatch&amp;gt;&lt;br/&gt;/ items = ("Don't think about a &amp;lt;%text.CatchTrialText.currentitem%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ halign = center&lt;br/&gt;/ valign = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mask&amp;gt;&lt;br/&gt;/items = ("+")&lt;br/&gt;/ fontstyle = ("Symbol", 12%, false, false, false, false, 5, 1)&lt;br/&gt;/ txcolor = (white)&lt;br/&gt;/txbgcolor = black&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial CatchTrial&amp;gt;&lt;br/&gt;/ stimulustimes = [1 = CatchTrialText; 3000 = ThoughtSuppInstuctCatch; 5000 = dummy; 5000 = mask]&lt;br/&gt;/ trialduration = 15000&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;surveypage.catchpage&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage catchpage&amp;gt;&lt;br/&gt;/questions = [1=catch]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/showbackbutton = false&lt;br/&gt;/ fontstyle = ("Arial", 10%, false, false, false, false, 5, 1)&lt;br/&gt;/ txcolor = (255, 255, 255)&lt;br/&gt;/itemfontstyle = ("Arial", 5%, false, false, false, false, 5, 1)&lt;br/&gt;/responsefontstyle = ("Arial", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/ errormessage = true(Error,800)&lt;br/&gt;/ correctmessage = true(accurate,800)&lt;br/&gt;/ ontrialend = [list.CatchAccuracy.insertitem(surveypage.catch.correct, 1);&amp;nbsp;]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons catch&amp;gt;&lt;br/&gt;/ caption = "What object were you not supposed to think about?"&lt;br/&gt;/ options = ("Dog"; "Cat"; "Bird"; "Fish"; "Horse"; "Spoon"; "Table"; "Chair"; "Desk"; "Lamp";)&lt;br/&gt;/ optionvalues = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10")&lt;br/&gt;/ validresponse = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10")&lt;br/&gt;/ orientation = vertical&lt;br/&gt;/ required = true&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Any help would be greatly appreciated, &lt;br/&gt;Thank you!</description><pubDate>Sun, 03 May 2020 03:14:47 GMT</pubDate><dc:creator>lachie.kay1</dc:creator></item><item><title>RE: Making the correct response to radiobuttons conditional</title><link>https://forums.millisecond.com/Topic28920.aspx</link><description>Works perfectly now, thank you!!</description><pubDate>Sun, 03 May 2020 03:14:47 GMT</pubDate><dc:creator>lachie.kay1</dc:creator></item><item><title>RE: Making the correct response to radiobuttons conditional</title><link>https://forums.millisecond.com/Topic28917.aspx</link><description>&lt;blockquote data-id="28911" class="if-quote-wrapper" unselectable="on" data-guid="1588333426321" id="if_insertedNode_1588333424969" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="28911" 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="28911" 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="28911" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;lachie.kay1 - 5/1/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-28911"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi all,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I'm currently trying to create a thought suppression task where, at the beginning of each trial, participants are presented with a word that they have to avoid thinking about.&lt;br/&gt;&lt;br/&gt;I'd like to make catch trials where participants have to identify the word they were previously shown, from a list, at the end of the trial (to ensure they are paying attention). At the moment I'm using radiobuttons to achieve this.&lt;br/&gt;&lt;br/&gt;On each trial, the word is drawn from a list of items and so the correct radiobutton response on catch trials will be conditional. I'm not sure to to make this happen as radiobutton doesn't have the /iscorrectresponse option.&lt;br/&gt;&lt;br/&gt;Here's the relevant parts of the script I have so far:&lt;br/&gt;&lt;br/&gt;&amp;lt;item CatchTrialItems&amp;gt;&lt;br/&gt;/1 = "Dog"&lt;br/&gt;/2 = "Cat"&lt;br/&gt;/3 = "Bird"&lt;br/&gt;/4 = "Fish"&lt;br/&gt;/5 = "Horse"&lt;br/&gt;/6 = "Spoon"&lt;br/&gt;/7 = "Table"&lt;br/&gt;/8 = "Chair"&lt;br/&gt;/9 = "Desk"&lt;br/&gt;/10 = "Lamp"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text CatchTrialText&amp;gt;&lt;br/&gt;/ items = CatchTrialItems&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ halign = center&lt;br/&gt;/ valign = center&lt;br/&gt;/ select = noreplacenorepeat&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text ThoughtSuppInstuctCatch&amp;gt;&lt;br/&gt;/ items = ("Don't think about a &amp;lt;%text.CatchTrialText.currentitem%&amp;gt;")&lt;br/&gt;/ fontstyle = ("Arial", 5%)&lt;br/&gt;/ txcolor = white&lt;br/&gt;/ halign = center&lt;br/&gt;/ valign = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mask&amp;gt;&lt;br/&gt;/items = ("+")&lt;br/&gt;/ fontstyle = ("Symbol", 12%, false, false, false, false, 5, 1)&lt;br/&gt;/ txcolor = (white)&lt;br/&gt;/txbgcolor = black&lt;br/&gt;/position = (50%, 50%)&lt;br/&gt;/erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial CatchTrial&amp;gt;&lt;br/&gt;/ stimulustimes = [1 = CatchTrialText; 3000 = ThoughtSuppInstuctCatch; 5000 = dummy; 5000 = mask]&lt;br/&gt;/ trialduration = 15000&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;surveypage.catchpage&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage catchpage&amp;gt;&lt;br/&gt;/questions = [1=catch]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/showbackbutton = false&lt;br/&gt;/ fontstyle = ("Arial", 10%, false, false, false, false, 5, 1)&lt;br/&gt;/ txcolor = (255, 255, 255)&lt;br/&gt;/itemfontstyle = ("Arial", 5%, false, false, false, false, 5, 1)&lt;br/&gt;/responsefontstyle = ("Arial", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/ errormessage = true(Error,800)&lt;br/&gt;/ correctmessage = true(accurate,800)&lt;br/&gt;/ ontrialend = [list.CatchAccuracy.insertitem(surveypage.catch.correct, 1);&amp;nbsp;]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons catch&amp;gt;&lt;br/&gt;/ caption = "What object were you not supposed to think about?"&lt;br/&gt;/ options = ("Dog"; "Cat"; "Bird"; "Fish"; "Horse"; "Spoon"; "Table"; "Chair"; "Desk"; "Lamp";)&lt;br/&gt;/ optionvalues = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10")&lt;br/&gt;/ validresponse = ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10")&lt;br/&gt;/ orientation = vertical&lt;br/&gt;/ required = true&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Any help would be greatly appreciated, &lt;br/&gt;Thank you!&lt;a class="if-quote-goto quote-link" href="#" data-id="28911"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You'll have to do something like&lt;br/&gt;&lt;br/&gt;/ ontrialend = [if (radiobuttons.catch.response ==&amp;nbsp; text.catchtrialtext.currentindex) {list.CatchAccuracy.insertitem(1, 1);} else {list.CatchAccuracy.insertitem(0, 1);}; ]&lt;br/&gt;</description><pubDate>Fri, 01 May 2020 11:47:55 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>