Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[open] Multiple choice output

edited July 2013 in OpenSesame

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

  • edited 5:02AM

    The form_multiple_choice has 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!

  • edited July 2013

    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].

  • edited 5:02AM

    How about the participant could choose more than one answer?

  • edited July 2013

    In this part:

    set allow_multiple "no"
    

    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.

  • edited 5:02AM

    I knew I have to choose yes, but the output file didn't display the choice from the subjects.

  • edited 5:02AM

    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

  • edited July 2013

    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:

    set allow_multiple "yes"
    set description "A simple multiple choice item"
    __question__
    
    Choose three types of food you dislike to most/ the least you like.
    __end__
    set button_text "Ok"
    set advance_immediately "yes"
    set form_title "Food Dislike The Most"
    set form_var "response"
    __options__
    Pizza
    Fried Chicken
    Cake
    Cheese
    Cookies
    Peanuts
    Doughnut
    Sausage
    Pancakes
    Burger
    __end__
    

    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

  • edited 5:02AM

    Hi Wing,

    When I run your form_multiple_choice item it works fine. The participant's choices appear in the column named 'response':

    image

    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 Buy Me A Coffee :)

  • edited 5:02AM

    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

  • edited 5:02AM

    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_var in the OpenSesame script is a valid workaround.

    Cheers!
    Sebastiaan

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games