Howdy, Stranger!

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

Supported by

Problem with Multiple Choice Form

Hi all,

On my multiple choice forms I have the question followed by the tick boxes for the answers and a next button. Currently you can progress by pressing next without having selected one of the options. Is there any way that I could force it so that the next button will only work if you have selected one of the responses? I can remove the next button so that the experiment progresses immediately when the response is given however this doesnt seem ideal as it moves very quickly and doesnt allow someone the opportunity to change their mind / check their response before choosing to progress.



  • Also I have two multiple choice forms later in my experiment, after the experimental loop that are not having their responses recorded in the output, even though response times for these variables are appearing in the output. Why would this be?

  • Hi,

    Is there any way that I could force it so that the next button will only work if you have selected one of the responses?

    Yes, this is possible with a bit of Python inline coding. This question has been answered before:

    It is of note that some of the functions have been improved in the latest versions of OpenSesame (3.0 and higher). Therefore, I attached a new example experiment here.

    Does that help?

    Let us know if you have any more questions!



    Buy Me A Coffee

  • Hi,

    Thanks for your help, all of this is a bit beyond me to be honest so I may just default to removing the widget! Haven't a clue what to do with that script! Appreciate the help though,


  • Hi,
    is there any hint to the second question of STOE1_11 regarding the multiple choice forms that do not record the response variable in the output? I just realized that it is the same for my experiment whenever I use the multiple choice item...for all other form items I used the response variables appear in the output.

    Thanks in advance,

  • Hi Cathi,

    Could you upload your experiment? Then, I can help you quicker.


    Buy Me A Coffee

  • Hi,

    We have the same problem with the multiple choice questions and we want to force it so that you can't go to the next questions without giving an answer. I can not find a clear answer in the other forum. So can anybody helps us with this problem?


  • Hello renske,

    What you can do is defining a variable associated, for instance, to a group of checkbox, like this example:

    # init a form
    gender_check = Form(exp, cols = 1, rows = 6, spacing = 10, margins = (100,100,100,100), theme = u'gray')
    # create the objects
    label = Label(text = "blabla")
    checkbox1 = Checkbox(text = "check1", group = "group", var='my_response_var')
    checkbox2 = Checkbox(text = "check2", group = "group", var='my_response_var')
    checkbox3 = Checkbox(text = "check3", group = "group", var='my_response_var')
    checkbox4 = Checkbox(text = "check4", group = "group", var='my_response_var')
    button_next = Button(text = "Next")
    gender_check.set_widget(label, (0,0))
    gender_check.set_widget(checkbox1, (1,0))
    gender_check.set_widget(checkbox2, (2,0))
    gender_check.set_widget(checkbox3, (3,0))
    gender_check.set_widget(checkbox4, (4,0))
    gender_check.set_widget(button_next, (5,0))
    box_not_checked = True
    while var.my_response_var =='no':

    Here all the checkbox belongs to a same group, so they are associated to a same variable "my_response_var". This variable is initialized with the value "no".
    So as long as the value of this variable stays no, you can see at the end of this example that the form is executed. When a box is checked, "my_response_var" takes the value of the checkbox, so when next is pressed the trial is over.



  • Oh and also for managing the variable the way you want with the checkboxes look here:

  • edited January 2019

    This looks very nice. I would like to create something similar.
    I have 28 items, with 3 or 4 items per screen. Each item has a rating scale. My problem is that participants can easily skip one of the items accidentally, because they can just click through, if they haven't filled in all items.
    Can you help me? I have looked at various pages on this forum, and I mostly wonder if I can make small adjustments to my script, or that I should change it all and use checkboxes instead? I have not worked with checkboxes thus far.

    Or should I try to use a validator?

  • Hi Charlotte,

    Yes, validators are definitely a good idea if you want to make sure that all the widgets are being answered.

    The end of this could be useful to you.


    Buy Me A Coffee

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