﻿<?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 7  » Group assignment based on survey answer</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 23 Apr 2026 16:38:41 GMT</lastBuildDate><ttl>20</ttl><item><title>Group assignment based on survey answer</title><link>https://forums.millisecond.com/Topic41753.aspx</link><description>Hi,&amp;nbsp;I'm new to Inquisit and having trouble linking a survey response to group assignment. I have a 2x2 design (&lt;i&gt;interest_group vs. control_group&lt;/i&gt; &lt;strong&gt;and &lt;/strong&gt;&lt;i&gt;experimental_condition vs. nonmanipulation_condition&lt;/i&gt;)&lt;br/&gt;&lt;br/&gt;My setup:&lt;br/&gt;&lt;span id="if_insertedNode_1766090911810"&gt;[code language="JavaScript"]&amp;lt;batch&amp;gt;&lt;br/&gt;/ groups = (1, 3 of 4)&lt;br/&gt;/ file = "first_paradigm.iqx"&lt;br/&gt;/ file = "manipulation_task.iqx"&lt;br/&gt;/ file = "first_paradigm_noinstruction.iqx"&lt;br/&gt;&amp;lt;/batch&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;batch&amp;gt;&lt;br/&gt;/ groups = (2, 4 of 4)&lt;br/&gt;/ file = "first_paradigm.iqx"&lt;br/&gt;/ file = "nonmanipulation_task.iqx"&lt;br/&gt;/ file = "first_paradigm_noinstruction.iqx"&lt;br/&gt;&amp;lt;/batch&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;I need an experiment flow that starts with a survey. Based on a specific answer:&lt;ul id="if_insertedNode_1766090957232"&gt;&lt;li&gt;If Answer = 1 (Interest_group): Randomly assign to Group 1 (Experimental) or Group 2 (Non-manipulation)&lt;/li&gt;&lt;li&gt;If Answer = 2 (Control_group): Randomly assign to Group 3 (Experimental) or Group 4 (Non-manipulation)&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br/&gt;How can I make the group assignment "wait" for the survey answer?&amp;nbsp;Documentation has been a bit hard for me to understand as a beginner, so any simple examples/solutions would be a huge help &lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&lt;/span&gt;&lt;/span&gt;</description><pubDate>Fri, 09 Jan 2026 16:56:42 GMT</pubDate><dc:creator>krzysztof_kozak</dc:creator></item><item><title>RE: Group assignment based on survey answer</title><link>https://forums.millisecond.com/Topic41770.aspx</link><description>Thank you! managed to solve the problem easily :)&amp;nbsp;</description><pubDate>Fri, 09 Jan 2026 16:56:42 GMT</pubDate><dc:creator>krzysztof_kozak</dc:creator></item><item><title>RE: Group assignment based on survey answer</title><link>https://forums.millisecond.com/Topic41754.aspx</link><description>&lt;blockquote data-id="41753" class="if-quote-wrapper" unselectable="on" data-guid="1766108817621" contenteditable="false" id="if_insertedNode_1766108816628"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="41753" 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="41753" 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="41753" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;krzysztof_kozak - 12/18/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-41753"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&amp;nbsp;I'm new to Inquisit and having trouble linking a survey response to group assignment. I have a 2x2 design (&lt;i&gt;interest_group vs. control_group&lt;/i&gt; &lt;strong&gt;and &lt;/strong&gt;&lt;i&gt;experimental_condition vs. nonmanipulation_condition&lt;/i&gt;)&lt;br/&gt;&lt;br/&gt;My setup:&lt;br/&gt;&lt;span id="if_insertedNode_1766090911810"&gt;[code language="JavaScript"]&amp;lt;batch&amp;gt;&lt;br/&gt;/ groups = (1, 3 of 4)&lt;br/&gt;/ file = "first_paradigm.iqx"&lt;br/&gt;/ file = "manipulation_task.iqx"&lt;br/&gt;/ file = "first_paradigm_noinstruction.iqx"&lt;br/&gt;&amp;lt;/batch&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;batch&amp;gt;&lt;br/&gt;/ groups = (2, 4 of 4)&lt;br/&gt;/ file = "first_paradigm.iqx"&lt;br/&gt;/ file = "nonmanipulation_task.iqx"&lt;br/&gt;/ file = "first_paradigm_noinstruction.iqx"&lt;br/&gt;&amp;lt;/batch&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;I need an experiment flow that starts with a survey. Based on a specific answer:&lt;ul id="if_insertedNode_1766090957232"&gt;&lt;li&gt;If Answer = 1 (Interest_group): Randomly assign to Group 1 (Experimental) or Group 2 (Non-manipulation)&lt;/li&gt;&lt;li&gt;If Answer = 2 (Control_group): Randomly assign to Group 3 (Experimental) or Group 4 (Non-manipulation)&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br/&gt;How can I make the group assignment "wait" for the survey answer?&amp;nbsp;Documentation has been a bit hard for me to understand as a beginner, so any simple examples/solutions would be a huge help &lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="41753"&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;Group ID is an essetial input, it is always, and has to be, determined before the study begins. You cannot have things "wait" for something else first. You need a diferent setup, not contingent on group ID: Administer the survey first, and use batch values and parameters to determine which script to actually execute after and which not to execute.&lt;br/&gt;&lt;br/&gt;This is concepturelly exactly the same as the language selection example you can find explained in this thread:&lt;br/&gt;&lt;br/&gt;&lt;a href="https://forums.millisecond.com/Topic23921.aspx"&gt;&lt;a href="https://forums.millisecond.com/Topic23921.aspx"&gt;https://forums.millisecond.com/Topic23921.aspx&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Fri, 19 Dec 2025 01:52:08 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>