Howdy, Stranger!

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

Supported by

multiple choice form: recording category for numerous response options?

Perhaps this is a simple problem, but I cannot find a solution in the manual.

Background: I have a multiple choice form with five possible responses, and importantly, the responses change for each trial. For the five possible responses, two of the responses represent one category (e.g., "1a", "1b" below), two of the responses represent a second category (e.g., "2a", "2b" below), and one of the responses is a distractor (e.g., "dist" below).








For the sake of example, category 1 presents words for fruit, category 2 presents words for meat, and distractor is a drink. So for trial one, this might be:

[1a]   = apple

[1b]   = pear

[2a]   = sausage

[2b]   = steak

[dist]   = wine

For trial two, the response options change (e.g., 1a = orange, 1b = grapefruit, 2a = prosciutto, etc.). And so on for each trial.

Issue: The response that is logged is the word that is presented: if a participant responds by selecting the variable [1a] for trial one, the recorded response ("form_response" in the csv file) is "apple" ... not "1a". Ideally, since 1a/1b, etc., represent a category across all trials, I would also like to have the category logged (e.g., "fruit").

Question: How would I go about recording both the word and the category?

Running: OpenSesame 3.3.3 Lentiform Loewenfeld on Linux Mint 19.3 "Tricia".


  • Dear @jdg ,

    Thank you for formulating your question so clearly!

    One quick-and-dirty solution that I came up with, is to:

    • Append an inline_script item after your form_multiple_choice item
    • Use some some Python code to compare the current response to the corresponding category (assuming that you defined the different categories as separate variables earlier in your experiment, for example in the block_loop item):
    # Compare the response variable to the category values:
    if var.response == var._1a:
        var.category = "1a"
    elif var.response == var._1b:
        var.category = "1b"
    elif var.response == var._2a:
        var.category = "2a"
    elif var.response == var._2b:
        var.category = "2b"
    elif var.response == var.dist:
        var.category = "dist"

    I attached an example experiment.

    Hope this helps!



    Buy Me A Coffee

  • @lvanderlinden Thank you very much for the quick response and my apologies for the slow follow-up!

    Your solution worked, but with one problem: in my experiment the response options are shuffled and thus the response category does not end up matching the category defined in the block_loop item. I have attached a modified version of your script to illustrate the issue. The only change from your script is that in the block_loop I have added the following:

    shuffle_horiz _1a _1b _2a _2b dist

    Any help solving this would be greatly appreciated. I will respond in a more timely fashion now that I am back to my regular work hours.


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