Howdy, Stranger!

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

Supported by

Displaying recent text Input

Hi, i'm trying to design an experiment using OS. As part of the experiment, a list of word is displayed to the subjects, then they are presented with a free recall task - using a loop-sequence they have to input as many words as they can recall, one word at time (in a text input form).
After that, i'd like to be able to display to the subjects the words they correctly recalled and then ask them to describe why they think they were able to recall each word (again one at a time is fine).

Bottom line:
1. How can i access the words just typed in by the subjects?
2. How can i validate these words (by comparison to the original list, to make sure the word was actually on it)?
3. How can i display to the subjects (say in a sketchpad), each word correctly recalled?

Thanks in advance!!


  • Hey Avigam,

    I am sorry but your description of the task is a bit confusing. From what I read I can understand that:

    1. You're displaying a list of words
    2. You ask them to sequentially input as many words they can remember
    3. Then sequentially display them words that were recalled correctly and ask them why they think they could recall it.
    Let's break up the above problems.
    1. You can use the sketchpad item to display the words. You can put these words in a loop item and then display then display it sequentially. See this:

    2. Now inorder to take response from them you have to use a text input form. First go through this:
    Then this:

    The former link gives you the idea as to how to create a form in OS and the later link introduce you to text input form.

    3. This one would require the python coding. A piece of code to match the words entered by the participant. Its not difficult however, I am not sure which variable in the text input form stores the response from the participant may be @sebastiaan can guide us here. Once we match the words that have been correctly entered we can use another python code to display those correctly recalled words sequentially to them
    This link can help us:

    Hope this gives you some idea

  • edited October 2018

    Hi @vatsalthebest , thanks for your help, and sorry about the confusion.

    I managed to build my experiment as i wanted, except now i encountered a new problem, how can i check if the input to the text input form was blank?
    I tried with an inline script, using codes:

    if not var.form_var:
    var.myWord = var.myWord.append(form_var)

    if var.form_var != None:
    var.myWord = var.myWord.append(form_var)

    (form_var is the variable for the input form, myWord an array to store the words recalled.)

    but neither seem to work.


  • Hey Avigam!

    I am afraid I am stuck at the first place. That is I can't find what variable the text inputs are stored.

    I urge @eduard or @sebastiaan could help you out in this.

    I read on the forum that 'stub' is the variable that shows whether text input was empty or there was an entry there.

    Sorry I couldn't help you

  • Hi Avi,

    How far did you get already? If you share your experiment, we can probably help you more straightforwardly.

    1. How can i access the words just typed in by the subjects?

    The var keyword takes the variable that you want to use to access the text input. So if you set `var = 'input_resp', this will be the word that was put in.

    2 How can i validate these words (by comparison to the original list, to make sure the word was actually on it)?

    I suppose every text input is in a loop/sequence structure, right? If you do so, add an inline_script to that sequence in which you put this (or similar) code:

    # supposing that var.input_resp is the text input response and word_list is a list with all the studies words
    if var.input_resp in word_list: 
        var.correct = 1
        correct_words.append(var.input_resp) # you have to define this correct_words list earlier in your experiment, before the recall phase!
       var.correct = 0
    1. How can i display to the subjects (say in a sketchpad), each word correctly recalled?

    Once you have the list with correct words, you can loop over it and present those words in a sketchpad, one by one, or you can just draw all of them on the same canvas, maybe even a form. Depending on your experiment, the implementation can look very different.

    Hope this helps,


    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