﻿<?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  » Passing subject ID between scripts within a batch</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 21 Sep 2026 07:07:42 GMT</lastBuildDate><ttl>20</ttl><item><title>Passing subject ID between scripts within a batch</title><link>https://forums.millisecond.com/Topic22058.aspx</link><description>I have been running scripts on the iPad using web experiments and the inquisit app. &amp;nbsp;One issue I've come across is that research assistants over overlook entering a new ID on the launch page for 'tests' within the inquisit app. &amp;nbsp;What happens then is I get the same subject ID allocated to lots of individuals because even the 'Random' option doesn't actually change the subject IDs across particpants.&lt;br/&gt;&lt;br/&gt;I can have a prompt which requires subject ID to be input with each of the scripts within the batch, but this requires the RA to enter the subject ID between every test, which isn't always possible in group testing. Is there someway I can run an "Enter ID" input text box in the batch script, and then pass that as the subject ID to all other scripts within the batch, or even as a custom variable of sorts?&lt;br/&gt;&lt;br/&gt;I hope this makes sense!&lt;br/&gt;&lt;br/&gt;Cheers&lt;br/&gt;Ian.</description><pubDate>Mon, 10 Jul 2017 07:29:40 GMT</pubDate><dc:creator>zajac</dc:creator></item><item><title>RE: Passing subject ID between scripts within a batch</title><link>https://forums.millisecond.com/Topic22060.aspx</link><description>&lt;div data-id="22058" class="if-quote-wrapper" unselectable="on" data-guid="1499696853073"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="22058" 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="22058" 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="22058" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;zajac - Monday, July 10, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-22058"&gt;&lt;div class="if-quote-message-margin"&gt;I have been running scripts on the iPad using web experiments and the inquisit app. &amp;nbsp;One issue I've come across is that research assistants over overlook entering a new ID on the launch page for 'tests' within the inquisit app. &amp;nbsp;What happens then is I get the same subject ID allocated to lots of individuals because even the 'Random' option doesn't actually change the subject IDs across particpants.&lt;br/&gt;&lt;br/&gt;I can have a prompt which requires subject ID to be input with each of the scripts within the batch, but this requires the RA to enter the subject ID between every test, which isn't always possible in group testing. Is there someway I can run an "Enter ID" input text box in the batch script, and then pass that as the subject ID to all other scripts within the batch, or even as a custom variable of sorts?&lt;br/&gt;&lt;br/&gt;I hope this makes sense!&lt;br/&gt;&lt;br/&gt;Cheers&lt;br/&gt;Ian.&lt;a class="if-quote-goto quote-link" href="#" data-id="22058"&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;If you run an &amp;lt;openended&amp;gt; prompt in the very first script in the &amp;lt;batch&amp;gt; to collect an id, you can then pass that information from script-to-script using &amp;lt;batch&amp;gt; parameters and values. See &lt;a href="https://www.millisecond.com/support/docs/v5/html/howto/batchparameters.htm"&gt;https://www.millisecond.com/support/docs/v5/html/howto/batchparameters.htm&lt;/a&gt;&lt;br/&gt;</description><pubDate>Mon, 10 Jul 2017 07:29:40 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>