Howdy, Stranger!

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

Supported by

[solved] potential ambiguity in none-responses in text input forms

edited March 2014 in OpenSesame

Hi all,

I have realized a little problem that might occur in text input forms:

In the very unlikely case that a participant actually types the letters 'None' into the text input field, OpenSesame cannot distinguish between this answer and a none-response. Both responses would be saved as type 'unicode' with the content 'None'.
While I think that no participant will ever type 'None' into the response field (it of course depends on the task), it is however not impossible.

Is there any way to avoid this potential problem while still using the form text input or do I need to create my own text input with Python code?

Thanks a lot in advance!

Comments

  • edited 10:56PM

    Hi,

    In principle, there is no ambiguity here. The response variable (i.e. the variable indicated in the 'Response variable' field of the form_text_input plugin-in or the one specified using the var keyword in a custom form) will always be set to whatever was in the text input when the form was exited. If the user doesn't type anything, this will be an empty string, if the user types 'None' it will be 'None', etc. So the value 'None' doesn't have any special meaning here, as it does in a keyboard_response, where it indicates that a timeout occurred.

    Does that clear things up?

    Cheers!
    Sebastiaan

  • edited March 2014

    Hi Sebastiaan,

    first, thanks for your fast reply. For some reason in my experiment, if the user does not type anything, 'None' ist saved instead of an empty string. I need to check why that is. Maybe creating a new text input response will fix the issue for my experiment.

    Best regards,
    Martin

  • edited 10:56PM

    EDIT: I just found out what is causing the issue. It is actually quite tricky. Just before the actual text input form, I am using a keyboard response that does not take any input, but only flushes pending keypresses (I got that nice idea from you some time ago: http://www.cogsci.nl/forum/index.php?p=/discussion/601/solved-how-to-disable-enter-key-before-text-input-form-is-shown#Item_3).

    This keyboard response seems to be causing that 'None' is saved instead of "" if nothing is typed. Only if I first type something and then delete what i have typed, an empty string gets stored. If I completely remove the keyboard response item, an empty string is always saved.

  • edited March 2014

    UPDATE: I fixed the issue by inserting a Python script between the key flushing keyboard response and the actual text input form. As the keyboard response sets the 'response' variable to 'None', the script simply sets the 'response' variable to "". So if nothing is typed, an empty string gets saved.

  • edited 10:56PM

    Hi Martin,

    Yes, that seems like a fine solution. But just to avoid confusion about this, which plug-in are you using exactly? Not the form_text_input plug-in right (as I initially assumed)?

    Cheers!
    Sebastiaan

  • edited March 2014

    Hi Sebastiaan,

    yes it is the form_text_input that I am using. And i now know that the default output should be an empty string if nothing is typed in. However, the empty keyboard response that only flushes keys immediately before this text input item seems to be setting the default answer to 'None'. This only happens if this keyboard response item exists.

    If you are interested in the issue, an colleague and I are implementing the TVA (theory of visual attention) in OpenSesame. You can find the experiment on https://github.com/crsh/combitva. It is not yet ready for dispatch and we will still change some things (e.g., in the experiment, the instructions are still in German), but the experiment is running as it is.

    Best regards,
    Martin

  • edited 10:56PM

    Hi Martin,

    That's pretty cool. I just created a page for standard tasks (see discussion below). I also added yours, basically so that the page doesn't start empty. But feel free to remove it or add a big 'under development' disclaimer if you feel this is premature.

    Cheers!
    Sebastiaan

  • edited 10:56PM

    Hi Sebastiaan,

    that is actually a nice thing. I think it is okay without a 'under developement' disclaimer, we just need to translate the instructions soon and maybe expand the readme a bit. Thank you for featuring the project!

    Best regards, Martin

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