Millisecond Forums

Textbox

https://forums.millisecond.com/Topic15065.aspx

By teilai - 11/24/2014

This is a question and a problem, since I don't get this simple thing working. I have a list of 15 questions (likert scales) and as a 16th a textbox "Other" in which participants can enter other items:

<block part_3>
/preinstructions = (instr_p3)
/trials = [1-15 = co_dependance1_l; 16 = co_dependance2_t]
</block>

<textbox co_dependance2_t>
/caption = "Autre (préciser):"
/size = (800, 100)
/position = (50, 30)
</textbox>

When I run the script, I get the message: 'Could not locate element co_dependance2_t'. If I remove the 16th trial from the block part_3, everything works fine (of course the textbox does not show up). If this is not how this is done, how should it be done? Thanks!
By Dave - 11/26/2014

A <textbox> is *not* a <trial> element, hence you cannot run it via a <block>'s /trials attribute. To use a <textbox>, you need to put it on a <surveypage> (via its /questions) attribute. A <surveypage> is a special kind of <trial> element.

Alternatively you can use the <openended> trial element.
By teilai - 11/30/2014

Thanks! I was able to solve the problem. openended was more appropriate for my purposes anyway.