Millisecond Forums

Naming data files with subject-entered values

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

By kurtisstewart1948 - 8/10/2015

Is it possible to use a subject-entered value (e.g., a textbox response) in the name of the outputted data file? I am conducting a web-based study where subjects must first enter their subject number (e.g., 1111). Once they have completed the task, I want their data file to include the subject number in the name (i.e., data-file-1111.iqdat). I have tried inserting <%textbox.subjectnumber.response%> in the data-naming part of the script, however, this returns several errors. Does anyone know how to do this?

Thank you!
By Dave - 8/10/2015

No, that's not possible. Data file names for a given script cannot be manipulated or determined by responses in that script.

The subject id, however, is part of of the standard data file name. What you'd thus do is have the *launch page* (not the script) prompt subjects to enter their id, which you can configure via your web experiment's settings:

https://www.millisecond.com/forums/uploads/images/bb9a76ff-12fb-4fb8-b755-747d.png
By kurtisstewart1948 - 8/10/2015

Hi Dave,

Thanks for your response. Unfortunately, because we are using several different tasks interspersed with questionnaires hosted on Qualtrics, the subject ID's and group ID's are being used to determine each subject's specific task order.

Kurtis
By Dave - 8/10/2015

Then I'm afraid there's no way to do it in this case.