﻿<?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  » Can I make text boxes with assigned values?</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 09 Apr 2026 02:50:08 GMT</lastBuildDate><ttl>20</ttl><item><title>Can I make text boxes with assigned values?</title><link>https://forums.millisecond.com/Topic16247.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;This is my first time coding in Inquisit and I have looked at the Millisecond Test Library and the online forums, but do not think I have found the exact answer that I need. &amp;nbsp;I'm trying to create an experiment in which participants allocate hypothetical money to a series of faces. &amp;nbsp;After each face, participants would see a running total of how much "money" they have left over before the next face/trial. For the money allocation page, I want to have 8 different text boxes presented simultaneously with a certain, fixed amount displayed on each box and when the participant clicks on the box, I would like the amount shown on the box to be deducted from their total, and then the updated total to be displayed on the next "screen"...&lt;br/&gt;&lt;br/&gt;I am really not sure of how to have the text boxes actually assigned to the value they display and would be sincerely grateful if anyone could help me with this please!&lt;br/&gt;&lt;br/&gt;Thank you in advance!</description><pubDate>Mon, 11 May 2015 07:20:14 GMT</pubDate><dc:creator>akb2204</dc:creator></item><item><title>RE: Can I make text boxes with assigned values?</title><link>https://forums.millisecond.com/Topic16252.aspx</link><description>Thank you so very much, Supreme Being Dave!! This is great!&lt;br/&gt;&lt;br/&gt;Sincerely,&lt;br/&gt;AKB</description><pubDate>Mon, 11 May 2015 07:20:14 GMT</pubDate><dc:creator>akb2204</dc:creator></item><item><title>RE: Can I make text boxes with assigned values?</title><link>https://forums.millisecond.com/Topic16249.aspx</link><description>You simply set up 8 &amp;lt;text&amp;gt; elements, each displaying a different amount of money. Have participants click on one of the &amp;lt;text&amp;gt; elements and subtract the selected amount from their total:&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ total = 1000&lt;br/&gt;/ amount1 = 10&lt;br/&gt;/ amount2 = 25&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-4=allocate]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial allocate&amp;gt;&lt;br/&gt;/ ontrialend = [if (trial.allocate.response=="amount1") values.total-=values.amount1]&lt;br/&gt;/ ontrialend = [if (trial.allocate.response=="amount2") values.total-=values.amount2]&lt;br/&gt;/ stimulusframes = [1=stimulus, amount1, amount2]&lt;br/&gt;/ validresponse = (amount1, amount2)&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ branch = [trial.showmoneyleft]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial showmoneyleft&amp;gt;&lt;br/&gt;/ stimulusframes = [1=total]&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;/ trialduration = 1000&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text stimulus&amp;gt;&lt;br/&gt;/ items = ("A", "B", "C", "D")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text amount1&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.amount1%&amp;gt;$")&lt;br/&gt;/ txbgcolor = grey&lt;br/&gt;/ size = (5%, 0.05px*display.width)&lt;br/&gt;/ position = (40%, 75%)&lt;br/&gt;/ vjustify = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text amount2&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.amount2%&amp;gt;$")&lt;br/&gt;/ txbgcolor = grey&lt;br/&gt;/ size = (5%, 0.05px*display.width)&lt;br/&gt;/ position = (60%, 75%)&lt;br/&gt;/ vjustify = center&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text total&amp;gt;&lt;br/&gt;/ items = ("You still have &amp;lt;%values.total%&amp;gt;$")&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 11 May 2015 01:24:27 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>