[open] Multiple choice output
I cannot find the output data for the gender.
did I miss something?
set allow_multiple "no"
set description "A simple multiple choice item"
set question "Gender"
set button_text "Next"
set advance_immediately "yes"
set form_title "Are you male or female"
__options__
Male
Female
__end__
Comments
The
form_multiple_choicehas a field called 'Response variable'. If you fill something in there, for example 'my_gender_response', you will get a variable of that name that contains the selected option.Cheers!
Check out SigmundAI.eu for our OpenSesame AI assistant!
I recently learned this too. You'll get a line in the code that says:
set form_var "variable_name"And then you can refer to it later in the experiment in brackets just like any other variable, like [variable_name].
How about the participant could choose more than one answer?
In this part:
you need to change
"no"to"yes". Alternatively, in the tab area, there is a box that says "Allow multiple options to be selected", and you should make sure that it is checked. If it's checked then the participant will be able to choose multiple responses.I knew I have to choose yes, but the output file didn't display the choice from the subjects.
Hi Wing,
What you will see is a semi-colon-separated list of all options that have been selected, in the variable that you have indicated. If you experience trouble, could you please be a bit more specific about what you have tried, what you expected to happen, and what actually did happen. I'm afraid that one-sentence queries will not get you much help.
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
Actually, I got lots of problem with opensesame (seems not a programme writer).
The gender issue has been solved.
When I allow to choose more then one options in multiple choice setting like this:
I dont know how to set the form_var. therefore the output file keep displaying NA.
How to set the keyboard_response must have one decimal place or the participants must enter the data with one decimal place?
How to set the text-input only allow in words or in number (e.g. 2 digits only) other forms not accepted.
How to change the setting people must answer all the questions cannot leave it blank or miss any questions.
Many thanks
Wing
Hi Wing,
When I run your form_multiple_choice item it works fine. The participant's choices appear in the column named 'response':
However, this only works if you place the logger item after response collection (because otherwise the variable 'response' doesn't have a value yet, and will say 'NA'). Does placing your logger item after the form_multiple_choice item solve your problem?
Regarding your other questions about evaluating whether the participant's text input meets certain criteria (e.g. whether the input only contains numbers), I guess your talking about form_text_input items, right? Because keyboard_response items can only be used to collect (and time) a single keypress.
I would like to refer you to a previous post, where someone wanted to evaluate whether participant's text input was a number between 0 and 100. The same thread also discusses how to only continue when no questions are left unanswered:
If you want to evaluate participants' responses in a similar way, you will certainly need some Python inline coding. If you have trouble translating the above suggestions to your own situation, please let us know, but make sure you inform us about what you have already tried yourself (by providing us with the experimental code), and why I didn't work.
Good luck!
Lotje
Did you like my answer? Feel free to

Hi everyone,
I just wanted to briefly mention that I was unable to find the GUI field "Response variable" for the form_multiple_choice. I still can specify the variable using form_var in the OpenSesame script - however, I don't have a field "Response variable" in the GUI. Maybe I just misunderstood Sebastiaan's post or overlooked the field - in this case, please excuse my post.
I am using v0.27.4 for Windows.
Best regards
Pascal
Hi Pascal,
You're not missing anything, the plug-in is. The response variable field was accidentally removed when the plug-in was updated a while back. Thanks for bringing this issue to our attention.
For now, specifying the
form_varin the OpenSesame script is a valid workaround.Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!