Howdy, Stranger!

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

Supported by

Text input form for use with JATOS



  • @lmelvill Thank you for your script multichar_response_revised script! I am trying to use the text part for my experiment, but I can't seem to make it work. I have multiple trials defined in the char_lp (each trial with a different stimulus) and i need subjects to be able to type a word while the stimulus is displayed. However, using your script, after I type one letter, the program moves on to the next stimulus. Does anyone know how to fix this problem?

  • Solved it! Thanks!

  • Hi!

    I've tried to use the mulitchar-input and it works very well, however the responses don't appear on the results. How can I correct this? Thanks!

  • Hi @anabatista,

    It's because your task does not contain a logger...

    Add a logger and the data will be saved in the output file. Note that the vars.multichar_response response for each of your questions will also contain "return" as a suffix (because it takes the enter key as part of the subject's input). So, if the subject indicates "id123" as their id in the first question and then hit the enter key, vars.multichar_response will be equal to "d123return". If you don't want that in your output, just use some Javascript right before the logger to remove the last 6 characters:

    vars.multichar_response = vars.multichar_response.substring(0, vars.multichar_response.length-6)

    Hope this helps,


    Buy Me A Coffee

  • Yes, it works! Thank you so much!

  • Hi @anabatista,

    Glad it works!

    One thing I should add to my earlier message: I very recently found out that some keyboards use ENTER and/or RETURN keys, so it may be that the suffix added to the vars.multichar_response variables may not always be "return" (might possibly sometimes be "enter"; which is 5 characters long instead of 6), so perhaps it's best not to edit the vars-multichar_response in Javascript and just let it be (and if needed, get rid of suffix characters in your data set, using some Excel string formula, for example).



    Buy Me A Coffee

  • edited May 16

    For some reason some attachments got lost in a recent update to the forum. But here it is again, an improved version of multiple-character input for OSWeb

    Hi Sebastiaan,

    Thank you for this! Is there some file to modify the inline JavaScript such that when the user simultaneously presses the 'shift' key + any letter (to make it uppercase), the 'shift' keypress itself is not outputted (i.e. so it only 'prints' out the capital letter)?

  • FabFab
    edited August 18

    @Karolmou @anabatista @Open_no_no

    Hi there,

    I know this thread is kind of old already but just for your information...

    I think a lot of the problems listed above are solved with OSWeb 1.4, as it now supports the form objects (except the form_base object) and introduces HTML forms through the new inline_html item...

    OSWeb 1.4 can be downloaded on its own but the recommended option is to download the pre released OS 3.3.10:

    This new version will make it a lot easier to take text input (whether a student id number at the beginning of the experiment, some text response in a trial, tick a informed consent box etc.). No need to use loops collecting single keyboard events and append the individual characters anymore.



    If you found my reply helpful and wish to invite me to a coffee, you can do so here 😉:

    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