Howdy, Stranger!

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

Supported by

Advance only to the next item when a selection has been made

Hi everybody,
in my experiment i have used multiple choice forms. I would like that the subjects are only able to advance to the next item whent hey have made a selection. How can i do that?
I hope you can help me.
Greetings
Felix

Comments

  • Hi Felix,

    You will need a bit of Python inline code to do this. The logic is explained in this post (my first comment in this discussion):

    Because the solution provided here was written for an older version of OpenSesame, I uploaded a new working example here:

    (Save with the extension .osexp and run as normally.

    I hope this helps.

    Best wishes,

    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • Hi Lotje,
    can you tell me in which line of your second example are the part of the code i need?
    Best wishes
    Felix

  • edited January 2017

    Hi Felix,

    The part of code you'll need is the following. It should be put in the Prepare phase tab of an inline_script item that is placed after the form_multiple_choice item(s):

    while True:
        # Prepare and run the multiple choice forms (you'll have to adapt the names to your own experiment):
        items.prepare("form_multiple_choice")
        items.run("form_multiple_choice")
    
        # If no response is given, continue to show the form.
        # Otherwise, break from this while loop and advance to the next item
        if var.response != "no":
            break
    

    I attached an example experiment.

    Good luck and let us know if you have any further questions!

    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • Hey Lotje, now i understand
    Thank you very much.

    Best wishes
    Felix

  • Hey Lotje,

    Thank for sharing your solution. I am fairly new to OP as well and have a similiar problem as Felix has/had.

    I tried out your script and it works great for form_multiple_choice, although I had to place it in the Run phase of the inline script because when I run the experiment and your code was placed in the Prepare phase, it skipped the forms before the first form_multiple_choice and started with the first form_multiple_choice. When placed in the Run phase, it works fine though.

    My actual questions is something diffrent...

    I tried to apply this script to form_base. I have a couple of them in my experiment and most of them include one or two rating scales and a "next" button to advance to the next form. The script works when pressing the button the first time but advances anyway when pressing the button a second time. Do have any idea how to fix this? Many thanks already!!!!

    Best,
    David

  • Sorry, I have to correct myself!

    When placed in the Run phase, two responses have to be given no matter what. So even if I respond correctly, I have to do it twice.

    David

  • Hi David,

    Would you mind sharing your experiment? Then, I could have a look.

    Besides, the newest version of Opensesame (3.2.1), has a new feature that is called form validation. With that you don't need to have this extra inline_script, but you can simply set what type of responses are required to proceed with the next item. If you upgrade, your life will probably be a little easier.

    Eduard

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