﻿<?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  » Recording participants' answer</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Tue, 28 Jul 2026 01:23:31 GMT</lastBuildDate><ttl>20</ttl><item><title>Recording participants' answer</title><link>https://forums.millisecond.com/Topic27627.aspx</link><description>Hi guys!&lt;br/&gt;&lt;br/&gt;I have designed an experiment in which participants have to indicate in which side of 20 squares there are more dots. Now I need to record the data about participants' choices as well as the responses to sociodemographic questions, and I have failed to do so.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have been using the element "data" and have set&amp;nbsp;values.selecteditem (trying to record participants' choice of the side) and demographics (the name of the block I have used to insert sociodemographic questions) as columns.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Can anyone tell me how I should have been doing it?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have attached the script below.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 19 Aug 2019 13:35:51 GMT</pubDate><dc:creator>JessicaEMFarias</dc:creator></item><item><title>RE: Recording participants' answer</title><link>https://forums.millisecond.com/Topic27630.aspx</link><description>&lt;div data-id="27629" class="if-quote-wrapper" unselectable="on" data-guid="1566246832571"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27629" 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="27629" 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="27629" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 8/19/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-27629"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27628" class="if-quote-wrapper" unselectable="on" data-guid="1566246832571"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27628" 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="27628" 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="27628" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 8/19/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-27628"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27627" class="if-quote-wrapper" unselectable="on" data-guid="1566246832571"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27627" 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="27627" 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="27627" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JessicaEMFarias - 8/19/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-27627"&gt;&lt;div class="if-quote-message-margin"&gt;Hi guys!&lt;br/&gt;&lt;br/&gt;I have designed an experiment in which participants have to indicate in which side of 20 squares there are more dots. Now I need to record the data about participants' choices as well as the responses to sociodemographic questions, and I have failed to do so.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have been using the element "data" and have set&amp;nbsp;values.selecteditem (trying to record participants' choice of the side) and demographics (the name of the block I have used to insert sociodemographic questions) as columns.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Can anyone tell me how I should have been doing it?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have attached the script below.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27627"&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've set your selection trial ("lado") up to not record any data. &lt;br/&gt;&lt;br/&gt;&amp;lt;trial lado&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.runcount = values.runcount += 1;]&lt;br/&gt;/ ontrialbegin = [if (values.runcount == 1) values.account_balance_temp = values.account_balance;]&lt;br/&gt;/ ontrialbegin = [if (values.selecteditem == "esquerdo") {values.account_balance_temp += 0.01;}]&lt;br/&gt;/ ontrialbegin = [if (values.selecteditem == "direito") {values.account_balance_temp += 0.05;}]&lt;br/&gt;/ ontrialend = [values.account_balance_temp = values.account_balance;]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "esquerdo") {shape.esquerdobg.color = green; values.selecteditem = "esquerdo";} else {shape.esquerdobg.color = black}; ]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "direito") {shape.direitobg.color = green; values.selecteditem = "direito";} else {shape.direitobg.color = black}; ]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "enviar" &amp;amp;&amp;amp; values.selecteditem == "esquerdo") {values.account_balance += 0.01;};]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "enviar" &amp;amp;&amp;amp; values.selecteditem == "direito") {values.account_balance += 0.05;};]&lt;br/&gt;/ stimulusframes = [1= estimate, esquerdobg, esquerdo, direitobg, direito, enviar, yourselection, balance_temp]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (esquerdo, direito, enviar)&lt;br/&gt;/ isvalidresponse = [if (trial.lado.response == "enviar" &amp;amp;&amp;amp; values.runcount == 1) false else true ]&lt;br/&gt;/ branch = [if (trial.lado.response != "enviar") trial.lado]&lt;br/&gt;&lt;strong&gt;/ recorddata = false&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;and your &amp;lt;data&amp;gt; element does not make any attempt to record values.selecteditem.&lt;br/&gt;&lt;br/&gt;There are no sociodemographic questions in the script you attached.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27628"&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 just want to capture a single row reflecting the final selection, do&lt;br/&gt;&lt;br/&gt;&amp;lt;trial lado&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.runcount = values.runcount += 1;]&lt;br/&gt;/ ontrialbegin = [if (values.runcount == 1) values.account_balance_temp = values.account_balance;]&lt;br/&gt;/ ontrialbegin = [if (values.selecteditem == "esquerdo") {values.account_balance_temp += 0.01;}]&lt;br/&gt;/ ontrialbegin = [if (values.selecteditem == "direito") {values.account_balance_temp += 0.05;}]&lt;br/&gt;/ ontrialend = [values.account_balance_temp = values.account_balance;]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "esquerdo") {shape.esquerdobg.color = green; values.selecteditem = "esquerdo";} else {shape.esquerdobg.color = black}; ]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "direito") {shape.direitobg.color = green; values.selecteditem = "direito";} else {shape.direitobg.color = black}; ]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "enviar" &amp;amp;&amp;amp; values.selecteditem == "esquerdo") {values.account_balance += 0.01;};]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "enviar" &amp;amp;&amp;amp; values.selecteditem == "direito") {values.account_balance += 0.05;};]&lt;br/&gt;/ stimulusframes = [1= estimate, esquerdobg, esquerdo, direitobg, direito, enviar, yourselection, balance_temp]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (esquerdo, direito, enviar)&lt;br/&gt;/ isvalidresponse = [if (trial.lado.response == "enviar" &amp;amp;&amp;amp; values.runcount == 1) false else true ]&lt;br/&gt;/ branch = [if (trial.lado.response != "enviar") trial.lado&lt;strong&gt; else trial.record_selection&lt;/strong&gt;]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;//just adds a line of data to the data file reflecting the final selection ("esquerdo" or "direito")&lt;br/&gt;&lt;strong&gt;&amp;lt;trial record_selection&amp;gt;&lt;br/&gt;/ trialduration = 0&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/file = "Resultados.iqdat"&lt;br/&gt;/separatefiles = true&lt;br/&gt;/columns = [date, time, group, subject, trialnum, trialcode, response, correct, latency, &lt;br/&gt;values.selecteditem, values.account_balance]&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27629"&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;I can't say anything about sociodemographics because -- as I said -- the script you attached does not contain any. If you run your &amp;lt;surveypage&amp;gt;(s) via a &amp;lt;block&amp;gt;, the responses to the various questions will be automatically captured in the data file's response column, with the trialcode column reflecting the respective question name.&lt;br/&gt;&lt;br/&gt;If you use a &amp;lt;survey&amp;gt; element instead of a &amp;lt;block&amp;gt;, you'll get a separate, differently formatted data file for the survey questions.&lt;br/&gt;</description><pubDate>Mon, 19 Aug 2019 13:35:51 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Recording participants' answer</title><link>https://forums.millisecond.com/Topic27629.aspx</link><description>&lt;div data-id="27628" class="if-quote-wrapper" unselectable="on" data-guid="1566246761262"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27628" 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="27628" 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="27628" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 8/19/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-27628"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="27627" class="if-quote-wrapper" unselectable="on" data-guid="1566246761262"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27627" 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="27627" 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="27627" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JessicaEMFarias - 8/19/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-27627"&gt;&lt;div class="if-quote-message-margin"&gt;Hi guys!&lt;br/&gt;&lt;br/&gt;I have designed an experiment in which participants have to indicate in which side of 20 squares there are more dots. Now I need to record the data about participants' choices as well as the responses to sociodemographic questions, and I have failed to do so.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have been using the element "data" and have set&amp;nbsp;values.selecteditem (trying to record participants' choice of the side) and demographics (the name of the block I have used to insert sociodemographic questions) as columns.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Can anyone tell me how I should have been doing it?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have attached the script below.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27627"&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've set your selection trial ("lado") up to not record any data. &lt;br/&gt;&lt;br/&gt;&amp;lt;trial lado&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.runcount = values.runcount += 1;]&lt;br/&gt;/ ontrialbegin = [if (values.runcount == 1) values.account_balance_temp = values.account_balance;]&lt;br/&gt;/ ontrialbegin = [if (values.selecteditem == "esquerdo") {values.account_balance_temp += 0.01;}]&lt;br/&gt;/ ontrialbegin = [if (values.selecteditem == "direito") {values.account_balance_temp += 0.05;}]&lt;br/&gt;/ ontrialend = [values.account_balance_temp = values.account_balance;]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "esquerdo") {shape.esquerdobg.color = green; values.selecteditem = "esquerdo";} else {shape.esquerdobg.color = black}; ]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "direito") {shape.direitobg.color = green; values.selecteditem = "direito";} else {shape.direitobg.color = black}; ]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "enviar" &amp;amp;&amp;amp; values.selecteditem == "esquerdo") {values.account_balance += 0.01;};]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "enviar" &amp;amp;&amp;amp; values.selecteditem == "direito") {values.account_balance += 0.05;};]&lt;br/&gt;/ stimulusframes = [1= estimate, esquerdobg, esquerdo, direitobg, direito, enviar, yourselection, balance_temp]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (esquerdo, direito, enviar)&lt;br/&gt;/ isvalidresponse = [if (trial.lado.response == "enviar" &amp;amp;&amp;amp; values.runcount == 1) false else true ]&lt;br/&gt;/ branch = [if (trial.lado.response != "enviar") trial.lado]&lt;br/&gt;&lt;strong&gt;/ recorddata = false&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;and your &amp;lt;data&amp;gt; element does not make any attempt to record values.selecteditem.&lt;br/&gt;&lt;br/&gt;There are no sociodemographic questions in the script you attached.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27628"&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 just want to capture a single row reflecting the final selection, do&lt;br/&gt;&lt;br/&gt;&amp;lt;trial lado&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.runcount = values.runcount += 1;]&lt;br/&gt;/ ontrialbegin = [if (values.runcount == 1) values.account_balance_temp = values.account_balance;]&lt;br/&gt;/ ontrialbegin = [if (values.selecteditem == "esquerdo") {values.account_balance_temp += 0.01;}]&lt;br/&gt;/ ontrialbegin = [if (values.selecteditem == "direito") {values.account_balance_temp += 0.05;}]&lt;br/&gt;/ ontrialend = [values.account_balance_temp = values.account_balance;]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "esquerdo") {shape.esquerdobg.color = green; values.selecteditem = "esquerdo";} else {shape.esquerdobg.color = black}; ]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "direito") {shape.direitobg.color = green; values.selecteditem = "direito";} else {shape.direitobg.color = black}; ]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "enviar" &amp;amp;&amp;amp; values.selecteditem == "esquerdo") {values.account_balance += 0.01;};]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "enviar" &amp;amp;&amp;amp; values.selecteditem == "direito") {values.account_balance += 0.05;};]&lt;br/&gt;/ stimulusframes = [1= estimate, esquerdobg, esquerdo, direitobg, direito, enviar, yourselection, balance_temp]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (esquerdo, direito, enviar)&lt;br/&gt;/ isvalidresponse = [if (trial.lado.response == "enviar" &amp;amp;&amp;amp; values.runcount == 1) false else true ]&lt;br/&gt;/ branch = [if (trial.lado.response != "enviar") trial.lado&lt;strong&gt; else trial.record_selection&lt;/strong&gt;]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;//just adds a line of data to the data file reflecting the final selection ("esquerdo" or "direito")&lt;br/&gt;&lt;strong&gt;&amp;lt;trial record_selection&amp;gt;&lt;br/&gt;/ trialduration = 0&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/file = "Resultados.iqdat"&lt;br/&gt;/separatefiles = true&lt;br/&gt;/columns = [date, time, group, subject, trialnum, trialcode, response, correct, latency, &lt;br/&gt;values.selecteditem, values.account_balance]&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;</description><pubDate>Mon, 19 Aug 2019 13:33:42 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Recording participants' answer</title><link>https://forums.millisecond.com/Topic27628.aspx</link><description>&lt;div data-id="27627" class="if-quote-wrapper" unselectable="on" data-guid="1566245792988"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="27627" 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="27627" 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="27627" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JessicaEMFarias - 8/19/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-27627"&gt;&lt;div class="if-quote-message-margin"&gt;Hi guys!&lt;br/&gt;&lt;br/&gt;I have designed an experiment in which participants have to indicate in which side of 20 squares there are more dots. Now I need to record the data about participants' choices as well as the responses to sociodemographic questions, and I have failed to do so.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have been using the element "data" and have set&amp;nbsp;values.selecteditem (trying to record participants' choice of the side) and demographics (the name of the block I have used to insert sociodemographic questions) as columns.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Can anyone tell me how I should have been doing it?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have attached the script below.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="27627"&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've set your selection trial ("lado") up to not record any data. &lt;br/&gt;&lt;br/&gt;&amp;lt;trial lado&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.runcount = values.runcount += 1;]&lt;br/&gt;/ ontrialbegin = [if (values.runcount == 1) values.account_balance_temp = values.account_balance;]&lt;br/&gt;/ ontrialbegin = [if (values.selecteditem == "esquerdo") {values.account_balance_temp += 0.01;}]&lt;br/&gt;/ ontrialbegin = [if (values.selecteditem == "direito") {values.account_balance_temp += 0.05;}]&lt;br/&gt;/ ontrialend = [values.account_balance_temp = values.account_balance;]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "esquerdo") {shape.esquerdobg.color = green; values.selecteditem = "esquerdo";} else {shape.esquerdobg.color = black}; ]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "direito") {shape.direitobg.color = green; values.selecteditem = "direito";} else {shape.direitobg.color = black}; ]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "enviar" &amp;amp;&amp;amp; values.selecteditem == "esquerdo") {values.account_balance += 0.01;};]&lt;br/&gt;/ ontrialend = [if (trial.lado.response == "enviar" &amp;amp;&amp;amp; values.selecteditem == "direito") {values.account_balance += 0.05;};]&lt;br/&gt;/ stimulusframes = [1= estimate, esquerdobg, esquerdo, direitobg, direito, enviar, yourselection, balance_temp]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = (esquerdo, direito, enviar)&lt;br/&gt;/ isvalidresponse = [if (trial.lado.response == "enviar" &amp;amp;&amp;amp; values.runcount == 1) false else true ]&lt;br/&gt;/ branch = [if (trial.lado.response != "enviar") trial.lado]&lt;br/&gt;&lt;strong&gt;/ recorddata = false&lt;/strong&gt;&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;and your &amp;lt;data&amp;gt; element does not make any attempt to record values.selecteditem.&lt;br/&gt;&lt;br/&gt;There are no sociodemographic questions in the script you attached.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 19 Aug 2019 13:22:23 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>