Millisecond Forums

options AND optionvalues in data output

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

By AchimS - 1/13/2023

Hello,

for my demographic survey with several dropdown-, radiobuttons- and other elements, I want to create a data output that shows two columns for the given responses.
One with the optionvalues (which is generated automatically and works out fine) and one with the responded option itself, which is generated automatically if I don't define optionvalues.
Is there a way to get both of these response-columns?

Thanks very much in advance!
By Dave - 1/13/2023

AchimS - 1/13/2023
Hello,

for my demographic survey with several dropdown-, radiobuttons- and other elements, I want to create a data output that shows two columns for the given responses.
One with the optionvalues (which is generated automatically and works out fine) and one with the responded option itself, which is generated automatically if I don't define optionvalues.
Is there a way to get both of these response-columns?

Thanks very much in advance!

https://www.millisecond.com/support/docs/current/html/language/properties/selectedcaption.htm

<radiobuttons example>
/ options = ("A", "B", "C")
/ optionvalues = ("1", "2", "3")
</radiobuttons>

<surveypage mypage>
/ ontrialend = [
    values.option = radiobuttons.example.selectedcaption;
]
/ questions = [1=example]
</surveypage>

<values>
/ option = ""
</values>

<block myblock>
/ trials = [1-3 = mypage]
</block>

<data>
/ columns = (date time subject group session blocknum blockcode trialnum trialcode
    response values.option latency)
</data>