Millisecond Forums

How to save radiobutton option selected by participants?

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

By MattJohnson - 8/28/2023

I have optionvalue set to represent the relative questionnaire score key- this is so that I can calculate questionnaire scores, and have Inquisit return participants' total and subscale scores. 

<radiobuttons AQ_1>
/caption = "I prefer to do things with others rather than on my own."
/options = ("Definitely~nDisagree", "Slightly~nDisagree", "Slightly~nAgree", "Definitely~nAgree")
/optionvalues = ("1", "1", "0", "0")
/required = false
/orientation = horizontalequal
</radiobuttons>

Because this questionnaire scores Definitely Disagree and Slightly Disagree the same, and Slightly Agree and Definitely Agree the same, I also want to save the option selected by participants for each item (e.g., as well as saving the option value, I'd like to know if the participant chose Definitely Disagree, Slightly Disagree, Slightly Agree, or Definitely Agree). I've tried creating an expression for each question option and saving that expression as a column in the data output:

<summarydata>
/ columns = (inquisit.version, computer.platform, script.startdate, script.starttime, script.subjectid, script.groupid, script.sessionid,
script.elapsedtime, script.completed,
expressions.AQ1
</summarydata>

<expressions>
/AQ1 = (radiobuttons.AQ_1.option)
</expressions>

Unfortunately, this doesn't work; no value is returned, just an empty cell. Any help is greatly appreciated.

Thanks,
Matt
By Dave - 8/29/2023

MattJohnson - 8/29/2023
I have optionvalue set to represent the relative questionnaire score key- this is so that I can calculate questionnaire scores, and have Inquisit return participants' total and subscale scores. 

<radiobuttons AQ_1>
/caption = "I prefer to do things with others rather than on my own."
/options = ("Definitely~nDisagree", "Slightly~nDisagree", "Slightly~nAgree", "Definitely~nAgree")
/optionvalues = ("1", "1", "0", "0")
/required = false
/orientation = horizontalequal
</radiobuttons>

Because this questionnaire scores Definitely Disagree and Slightly Disagree the same, and Slightly Agree and Definitely Agree the same, I also want to save the option selected by participants for each item (e.g., as well as saving the option value, I'd like to know if the participant chose Definitely Disagree, Slightly Disagree, Slightly Agree, or Definitely Agree). I've tried creating an expression for each question option and saving that expression as a column in the data output:

<summarydata>
/ columns = (inquisit.version, computer.platform, script.startdate, script.starttime, script.subjectid, script.groupid, script.sessionid,
script.elapsedtime, script.completed,
expressions.AQ1
</summarydata>

<expressions>
/AQ1 = (radiobuttons.AQ_1.option)
</expressions>

Unfortunately, this doesn't work; no value is returned, just an empty cell. Any help is greatly appreciated.

Thanks,
Matt

https://www.millisecond.com/support/docs/current/html/language/properties/selectedcaption.htm is the property you are looking for, not option.
By MattJohnson - 8/29/2023

Dave - 8/29/2023
MattJohnson - 8/29/2023
I have optionvalue set to represent the relative questionnaire score key- this is so that I can calculate questionnaire scores, and have Inquisit return participants' total and subscale scores. 

<radiobuttons AQ_1>
/caption = "I prefer to do things with others rather than on my own."
/options = ("Definitely~nDisagree", "Slightly~nDisagree", "Slightly~nAgree", "Definitely~nAgree")
/optionvalues = ("1", "1", "0", "0")
/required = false
/orientation = horizontalequal
</radiobuttons>

Because this questionnaire scores Definitely Disagree and Slightly Disagree the same, and Slightly Agree and Definitely Agree the same, I also want to save the option selected by participants for each item (e.g., as well as saving the option value, I'd like to know if the participant chose Definitely Disagree, Slightly Disagree, Slightly Agree, or Definitely Agree). I've tried creating an expression for each question option and saving that expression as a column in the data output:

<summarydata>
/ columns = (inquisit.version, computer.platform, script.startdate, script.starttime, script.subjectid, script.groupid, script.sessionid,
script.elapsedtime, script.completed,
expressions.AQ1
</summarydata>

<expressions>
/AQ1 = (radiobuttons.AQ_1.option)
</expressions>

Unfortunately, this doesn't work; no value is returned, just an empty cell. Any help is greatly appreciated.

Thanks,
Matt

https://www.millisecond.com/support/docs/current/html/language/properties/selectedcaption.htm is the property you are looking for, not option.

Fantastic! Thank you for your help!