Howdy, Stranger!

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

Supported by

Multiple responses needed in a touch_response


I began my thesis a few months ago and i'm quite new in OpenSesame and coding, so I wonder if someone could help me :)
I created a design which presents as follow : participants are presented with one or three images on the top of the screen, followed by a set of 24 new images under. In this set, I need them to select the other images like the first one. In order to do so, I introduced a touch_response, but when I run the experiment, I can select only one response in the set.
So my question is :
Is there any possibility to select more than one response (between 0 and 24) in a touch_response element ? If it is, how can I do that ? Can I add a button or a keypress to run the next item when participant says he is over ?

After that, I would have another question : is it possible to add a visual mark on the images he has already selected (just in order to keep track of the responses given, because participants are young children) ?

Thank to anyone who have had an answer !


  • Hi Estelle,

    There are many ways in which you could implement something like this. But it sounds like your best bet is to use a form. For example, you could present 24 checkbox widgets with 24 image widgets next to them. And then one button widget to accept the answer. This would give you what you need, right?



    There's much bigger issues in the world, I know. But I first have to take care of the world I know.

  • Hi Sebastiaan,

    Thanks a lot for your answer. Actually I changed my mind since I wrote my comment and I'm trying the form :) I have thought about checkbox, but in fact it seems not really intuitive for young children (especially as I don't have a touch screen and the mouse's use is complicated for them).
    So I tried inline_scripts and created 24 image_button widgets but I'm now looking for a way to add a frame or something like a visual sign on my images in order to keep track of the given responses. I saw there is a draw_frame method but I can't understand how it is working. Do you have some more information about this ?


  • Hi Estelle,

    Attached a screenshot of what a frame "does" to a button. So, I don't think it is what you have in mind. In any case you can try it on your experiment, just add the argument frame=True to the part of the code that defines each button. If you really mean ImageButtons, I am afraid the frame feature is not defined for them. At least when I tried it on my system it doesn't work. Again, give it a go and find out yourself.

    Good luck,


  • Hi Eduard,

    Thank you for your propositions. You were right, I tried it but it doesn't work (it seems that image buttons doesn't have any draw frame or frame element, but I don't understand why the documentation here let suppose that it's possible). Frames could have been good, in fact I juste need the children can see what image they already have clicked on. Maybe you know if it's possible to add an image element on the image button if it has been clicked ? I already tried it too but i'm not sure the code I wrote is correct enough or if I just can't do that.

    thanks again,

Sign In or Register to comment.