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.

Thanks

Comments

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

    Cheers,

    Lotje

    Lotje van der Linden - http://www.cogsci.nl
    FACEBOOK

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

    Emily

  • 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,
    Cathi

  • Hi Cathi,

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

    Thanks,
    Eduard

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

    Renske

  • 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':
        gender_check._exec()
    

    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.

    Best,

    Sylvain

  • Oh and also for managing the variable the way you want with the checkboxes look here:
    http://osdoc.cogsci.nl/3.2/manual/forms/variables/

Sign In or Register to comment.