Group: Administrators
Posts: 13K,
Visits: 103K
|
That's by design and intended: The <data> element does not apply to <survey>s. You'll notice that the data format produced by <survey> is fundamentally different than the data format produced by <block>s.
A survey produces a file in "wide" format -- a single row per subject, with pages / questions being the columns. Survey data output cannot be customized.
Blocks produce data in "long" format -- multiple lines per subject, each line representing a single trial, the columns being those defined by the script's <data> element.
If you run your <surveypage> (a special type of <trial>) via a regular <block>, you will see that the <data> element applies as specified:
<data> /columns = [date time group subject response] </data>
<block demographicsblock> / trials = [1 = demographics] </block>
<surveypage demographics> / caption = "Please answer the following demographic questions:" / fontstyle = ("Times New Roman", -20, true, false, false, false, 5, 0) / responsefontstyle = ("Times New Roman", -18, false, false, false, false, 5, 0) / itemfontstyle = ("Times New Roman", -20, false, false, false, false, 5, 0) / itemspacing = 2% / showpagenumbers = false / questions = [1=Sex; 2=JobTitle; 3=EmploymentStatus; 4=DirectCare; 5=YearsWorked] </surveypage>
|