﻿<?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  » Multiple Responses for one trial</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 13 Sep 2026 06:18:47 GMT</lastBuildDate><ttl>20</ttl><item><title>Multiple Responses for one trial</title><link>https://forums.millisecond.com/Topic27357.aspx</link><description>Hi there,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;For my experiment I want to have 3 words pop up in 3 different locations (of a total of 6 locations) and I want the participant to rank them by clicking on them and as they click on a word it disappears and leaves the other two behind until the last one and then the experiment restarts with three different words.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I know that it is not possible for a trial to have several responses so I have defined a trial for each of the different possibilities and then joined the trials with 3 positions to the ones of two positions using the branch item. like so:&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial my_trial_1_2_3&amp;gt;&lt;br/&gt;/ validresponse = (position_1, position_2, position_3)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ stimulusframes = [1 = position_1, position_2, position_3]&lt;br/&gt;/ showmousecursor = true&lt;br/&gt;/ branch = [&lt;br/&gt;if (trial.my_trial_1_2_3.response == text.position_1){&lt;br/&gt;trial.trial_second_response_2_3&lt;br/&gt;}&lt;br/&gt;else if (trial.my_trial_1_2_3.response == text.position_2){&lt;br/&gt; trial.trial_second_response_1_3&lt;br/&gt;}&lt;br/&gt;else if (trial.my_trial_1_2_3.response == text.position_3){&lt;br/&gt;trial.trial_second_response_1_2&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;*****assume person clicks on position_1**********&lt;br/&gt;&lt;br/&gt;&amp;lt;trial trial_second_response_2_3&amp;gt;&lt;br/&gt;/ validresponse = (position_2, position_3)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ stimulusframes = [1= position_2, position_3]&lt;br/&gt;/ showmousecursor = true&lt;br/&gt;/ branch = [&lt;br/&gt;if (trial.trial_second_response_2_3.response == text.position_2){&lt;br/&gt;trial.last_response_3&lt;br/&gt;}&lt;br/&gt;if (trial.trial_second_response_2_3.response == text.position_3){&lt;br/&gt;trial.last_response_2&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******assume person clicks on position_2******************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial last_response_3&amp;gt;&lt;br/&gt;/ stimulusframes = [1=position_3]&lt;br/&gt;/ validresponse = (position_3)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ showmousecursor = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;******&lt;br/&gt;^^and i have done this for every combination and for every click possibility&amp;nbsp;&lt;br/&gt;&lt;br/&gt;However, there are two issues with this: somehow I haven't been able to get the sequence to work when I put it into blocks and I figured if the blocks do work for every click it would change the words that are appearing (only the positions will be coherent with how I've defined in the branching).&amp;nbsp;&lt;br/&gt;&lt;br/&gt;so my questions are:&amp;nbsp;&lt;br/&gt;1. How could I put this into a block&amp;nbsp;&lt;br/&gt;2. how would I have to define the list of words to keep them coherent when switching from one trial to another?&lt;br/&gt;&lt;br/&gt;or if there is a better and easier way to this this, I would appreciate any help.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thank you !</description><pubDate>Tue, 02 Jul 2019 06:14:12 GMT</pubDate><dc:creator>maria_b1998</dc:creator></item><item><title>RE: Multiple Responses for one trial</title><link>https://forums.millisecond.com/Topic27364.aspx</link><description>&lt;div data-id="27362" class="if-quote-wrapper" unselectable="on" data-guid="1562073244183"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27362" 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="27362" 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="27362" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 7/2/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27362"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27357" class="if-quote-wrapper" unselectable="on" data-guid="1562073244183"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27357" 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="27357" 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="27357" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;maria_b1998 - 7/1/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27357"&gt;&lt;div class="if-quote-message-margin"&gt;Hi there,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;For my experiment I want to have 3 words pop up in 3 different locations (of a total of 6 locations) and I want the participant to rank them by clicking on them and as they click on a word it disappears and leaves the other two behind until the last one and then the experiment restarts with three different words.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I know that it is not possible for a trial to have several responses so I have defined a trial for each of the different possibilities and then joined the trials with 3 positions to the ones of two positions using the branch item. like so:&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial my_trial_1_2_3&amp;gt;&lt;br/&gt;/ validresponse = (position_1, position_2, position_3)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ stimulusframes = [1 = position_1, position_2, position_3]&lt;br/&gt;/ showmousecursor = true&lt;br/&gt;/ branch = [&lt;br/&gt;if (trial.my_trial_1_2_3.response == text.position_1){&lt;br/&gt;trial.trial_second_response_2_3&lt;br/&gt;}&lt;br/&gt;else if (trial.my_trial_1_2_3.response == text.position_2){&lt;br/&gt; trial.trial_second_response_1_3&lt;br/&gt;}&lt;br/&gt;else if (trial.my_trial_1_2_3.response == text.position_3){&lt;br/&gt;trial.trial_second_response_1_2&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;*****assume person clicks on position_1**********&lt;br/&gt;&lt;br/&gt;&amp;lt;trial trial_second_response_2_3&amp;gt;&lt;br/&gt;/ validresponse = (position_2, position_3)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ stimulusframes = [1= position_2, position_3]&lt;br/&gt;/ showmousecursor = true&lt;br/&gt;/ branch = [&lt;br/&gt;if (trial.trial_second_response_2_3.response == text.position_2){&lt;br/&gt;trial.last_response_3&lt;br/&gt;}&lt;br/&gt;if (trial.trial_second_response_2_3.response == text.position_3){&lt;br/&gt;trial.last_response_2&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******assume person clicks on position_2******************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial last_response_3&amp;gt;&lt;br/&gt;/ stimulusframes = [1=position_3]&lt;br/&gt;/ validresponse = (position_3)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ showmousecursor = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;******&lt;br/&gt;^^and i have done this for every combination and for every click possibility&amp;nbsp;&lt;br/&gt;&lt;br/&gt;However, there are two issues with this: somehow I haven't been able to get the sequence to work when I put it into blocks and I figured if the blocks do work for every click it would change the words that are appearing (only the positions will be coherent with how I've defined in the branching).&amp;nbsp;&lt;br/&gt;&lt;br/&gt;so my questions are:&amp;nbsp;&lt;br/&gt;1. How could I put this into a block&amp;nbsp;&lt;br/&gt;2. how would I have to define the list of words to keep them coherent when switching from one trial to another?&lt;br/&gt;&lt;br/&gt;or if there is a better and easier way to this this, I would appreciate any help.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thank you !&lt;a class="if-quote-goto quote-link" href="#" data-id="27357"&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'll want to have a simple start trial that samples the words and positions once at the start of every rating sequence. Use &amp;lt;list&amp;gt; elements and values to store the item numbers and positions, use the values for selection in your &amp;lt;text&amp;gt; elements. You'll then want to branch to a single rating trial, and you'll want to keep that trial /branch'ing to itself until all three words have been clicked.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27362"&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;Here's a working example:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ responses = ""&lt;br/&gt;/ n = 0&lt;br/&gt;/ setnumber = 1&lt;br/&gt;/ ax = 0%&lt;br/&gt;/ ay = 0%&lt;br/&gt;/ bx = 0%&lt;br/&gt;/ by = 0%&lt;br/&gt;/ cx = 0%&lt;br/&gt;/ cy = 0%&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block example&amp;gt;&lt;br/&gt;/ trials = [1-2 = start]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.responses = "";&lt;br/&gt;values.n = 0;&lt;br/&gt;text.a.textcolor = black;&lt;br/&gt;text.b.textcolor = black;&lt;br/&gt;text.c.textcolor = black;&lt;br/&gt;values.setnumber = list.sets.nextvalue;&lt;br/&gt;list.x.reset();&lt;br/&gt;values.ax = list.x.nextvalue;&lt;br/&gt;values.ay = list.y.nextvalue;&lt;br/&gt;values.bx = list.x.nextvalue;&lt;br/&gt;values.by = list.y.nextvalue;&lt;br/&gt;values.cx = list.x.nextvalue;&lt;br/&gt;values.cy = list.y.nextvalue;&lt;br/&gt;]&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ recorddata = false&lt;br/&gt;/ branch = [&lt;br/&gt;trial.ranktrial&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial ranktrial&amp;gt;&lt;br/&gt;/ ontrialend = [&lt;br/&gt;values.responses = concat(values.responses, trial.ranktrial.response);&lt;br/&gt;values.n += 1;&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;if (trial.ranktrial.response == "a") {&lt;br/&gt;text.a.textcolor = white;&lt;br/&gt;}&lt;br/&gt;else if (trial.ranktrial.response == "b") {&lt;br/&gt;text.b.textcolor = white;&lt;br/&gt;}&lt;br/&gt;else if (trial.ranktrial.response == "c") {&lt;br/&gt;text.c.textcolor = white;&lt;br/&gt;};&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1=a,b,c]&lt;br/&gt;/ validresponse = (a,b,c)&lt;br/&gt;/ isvalidresponse = [&lt;br/&gt;!contains(values.responses, trial.ranktrial.response)&lt;br/&gt;]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ branch = [&lt;br/&gt;if (values.n &amp;lt; 3) trial.ranktrial;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text a&amp;gt;&lt;br/&gt;/ items = aitems&lt;br/&gt;/ select = values.setnumber&lt;br/&gt;/ hposition = values.ax&lt;br/&gt;/ vposition = values.ay&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text b&amp;gt;&lt;br/&gt;/ items = bitems&lt;br/&gt;/ select = values.setnumber&lt;br/&gt;/ hposition = values.bx&lt;br/&gt;/ vposition = values.by&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text c&amp;gt;&lt;br/&gt;/ items = citems&lt;br/&gt;/ select = values.setnumber&lt;br/&gt;/ hposition = values.cx&lt;br/&gt;/ vposition = values.cy&lt;br/&gt;/ erase = false&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item aitems&amp;gt;&lt;br/&gt;/ 1 = "A1"&lt;br/&gt;/ 2 = "A2"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item bitems&amp;gt;&lt;br/&gt;/ 1 = "B1"&lt;br/&gt;/ 2 = "B2"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item citems&amp;gt;&lt;br/&gt;/ 1 = "C1"&lt;br/&gt;/ 2 = "C2"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list sets&amp;gt;&lt;br/&gt;/ items = (1,2)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list x&amp;gt;&lt;br/&gt;/ items = (40%, 60%, 80%, 40%, 60%, 80%)&lt;br/&gt;/ selectionrate = always&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list y&amp;gt;&lt;br/&gt;/ items = (45%, 45%, 45%, 55%, 55%, 55%)&lt;br/&gt;/ selectionrate = always&lt;br/&gt;/ selectionmode = list.x.currentindex&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;</description><pubDate>Tue, 02 Jul 2019 06:14:12 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Multiple Responses for one trial</title><link>https://forums.millisecond.com/Topic27362.aspx</link><description>&lt;div data-id="27357" class="if-quote-wrapper" unselectable="on" data-guid="1562069926538"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27357" 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="27357" 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="27357" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;maria_b1998 - 7/1/2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-27357"&gt;&lt;div class="if-quote-message-margin"&gt;Hi there,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;For my experiment I want to have 3 words pop up in 3 different locations (of a total of 6 locations) and I want the participant to rank them by clicking on them and as they click on a word it disappears and leaves the other two behind until the last one and then the experiment restarts with three different words.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I know that it is not possible for a trial to have several responses so I have defined a trial for each of the different possibilities and then joined the trials with 3 positions to the ones of two positions using the branch item. like so:&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial my_trial_1_2_3&amp;gt;&lt;br/&gt;/ validresponse = (position_1, position_2, position_3)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ stimulusframes = [1 = position_1, position_2, position_3]&lt;br/&gt;/ showmousecursor = true&lt;br/&gt;/ branch = [&lt;br/&gt;if (trial.my_trial_1_2_3.response == text.position_1){&lt;br/&gt;trial.trial_second_response_2_3&lt;br/&gt;}&lt;br/&gt;else if (trial.my_trial_1_2_3.response == text.position_2){&lt;br/&gt; trial.trial_second_response_1_3&lt;br/&gt;}&lt;br/&gt;else if (trial.my_trial_1_2_3.response == text.position_3){&lt;br/&gt;trial.trial_second_response_1_2&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;*****assume person clicks on position_1**********&lt;br/&gt;&lt;br/&gt;&amp;lt;trial trial_second_response_2_3&amp;gt;&lt;br/&gt;/ validresponse = (position_2, position_3)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ stimulusframes = [1= position_2, position_3]&lt;br/&gt;/ showmousecursor = true&lt;br/&gt;/ branch = [&lt;br/&gt;if (trial.trial_second_response_2_3.response == text.position_2){&lt;br/&gt;trial.last_response_3&lt;br/&gt;}&lt;br/&gt;if (trial.trial_second_response_2_3.response == text.position_3){&lt;br/&gt;trial.last_response_2&lt;br/&gt;}&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;*******assume person clicks on position_2******************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial last_response_3&amp;gt;&lt;br/&gt;/ stimulusframes = [1=position_3]&lt;br/&gt;/ validresponse = (position_3)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ showmousecursor = true&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;******&lt;br/&gt;^^and i have done this for every combination and for every click possibility&amp;nbsp;&lt;br/&gt;&lt;br/&gt;However, there are two issues with this: somehow I haven't been able to get the sequence to work when I put it into blocks and I figured if the blocks do work for every click it would change the words that are appearing (only the positions will be coherent with how I've defined in the branching).&amp;nbsp;&lt;br/&gt;&lt;br/&gt;so my questions are:&amp;nbsp;&lt;br/&gt;1. How could I put this into a block&amp;nbsp;&lt;br/&gt;2. how would I have to define the list of words to keep them coherent when switching from one trial to another?&lt;br/&gt;&lt;br/&gt;or if there is a better and easier way to this this, I would appreciate any help.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thank you !&lt;a class="if-quote-goto quote-link" href="#" data-id="27357"&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'll want to have a simple start trial that samples the words and positions once at the start of every rating sequence. Use &amp;lt;list&amp;gt; elements and values to store the item numbers and positions, use the values for selection in your &amp;lt;text&amp;gt; elements. You'll then want to branch to a single rating trial, and you'll want to keep that trial /branch'ing to itself until all three words have been clicked.&lt;br/&gt;</description><pubDate>Tue, 02 Jul 2019 05:21:23 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>