Howdy, Stranger!

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

Supported by

Word Fragment Completion Task

Hello,

I am trying to build a word fragment completion task (see image below) so that I can run it in OSWEB. I am using the multi character method sugested by @sebastiaan https://forum.cogsci.nl/discussion/4737/text-input-form-for-use-with-jatos as text_input forms don't work in OSWEB. This works very well.

This method runs a loop (get_input_loop) to collect individual inputs. The loop breaks when you hit enter. I want to imbed this loop in a higher level loop (word_frag_loop) that contains 20 word fragments. The first trial works great. The word fragment appears and text input is accepted. However, when you press enter, it breaks the get_input_loop and the experiment ends. The word_frag_loop does not loop again.


Any helps would be greatfully received.

Deiniol



Comments

  • Hi @Skilli ,

    The problem lies in the position of the init item. If you open this item, you will see that it resets the response variable to an empty string. Now if you open get_input_loop, you will see that it breaks as soon as response is a return (or enter). So what happens in your experiment is that once you press enter, get_input_loop will break all subsequent iterations. The solution will be to move init to the start of the word_fragment_sequence so that the response variable is reset every time. Does that make sense?

    Cheers!

    Sebastiaan

  • Thank you @Sebastiaan. Moving the init item mad the experiment work.

    I think it make sense. With the init item in the original place, it would not reset the response on every sunsequent loop of the word_frag_loop. When you say "once you press enter, get_input_loop will break all subsequent iterations". Does this refer to subsequent iterations of the word_frag_loop?

  • I have attached the word fragment completion task that will work in OSWEB. Someone might be able to use it.


    Thanks again Sebastiaan.

    Deiniol Skilli

  • When you say "once you press enter, get_input_loop will break all subsequent iterations". Does this refer to subsequent iterations of the word_frag_loop?

    Not really. It will break subsequent iterations of get_input_loop, because of the break-if statement ([response] = enter or [response] = return). But word_frag_loop doesn't do much else except run get_input_loop, and therefore it de facto also skips that loop.

    And thanks for sharing the experiment! πŸ‘οΈ

  • With the init item in the original place (i.e. start of the "word frag Task"), the response variable is reset to " " (i.e. nothing). The experiment moves onto the word_frag_loop and runs the word_frag_sequence, which then runs the get_input_loop. The get_input_loop loops round and round while multicharacter response is being collected (i.e. one loop per character). When enter/return is hit, the get_input_loop brakes and response is now set to "enter/return". At this point, does the experiemnt run another word_frag_loop, but becasue response variable has not been reset and still has a value of enter/return then when the experiemnt gets to the get_input_loop it brakes straight away and runs another word_frag_loop which then runs get_input_loop which brakes straight away and runs another word_frag_loop which then runs get_input_loop etc etc.

    Am I getting it right? The word_frag_loop continuess to loop but get_input_loop brakes immediatly as the response value has not been reset as the start of the word_frag_sequence.


    Sorry for the long doube check. If I can confirm that I understand my mistake, it wil help me in future experiemnt devopment.


    Best

    Deiniol

  • πŸ˜€ πŸ‘οΈ

  • Thanks for sharing the script, @Skilli !!

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

  • Hi,

    I am having a similar problem and I have been reading this thread for the 10th time :')

    But, in my experiment, I need to collect multiple responses in a questionnaire with this kind of text input and I am using the same inline script. However, mine looks like this for now though I would like to make the participants be able to enter 10 inputs in one sketchpad. Though, as it is right now (with only 2 input trials), I can't seem to pass to the second block_loop. The first one breaks when they pass enter and experiment ends. I couldn't apply the solutions offered here...

    So my questions in short are:

    1)how could I use one javascript inline for one sketchpad to make them be able to enter 10 different inputs with 10 diff variables (my coding skills are so not enough...)

    2)if the first possibility is not a chance, how can I use these different blocks...?

    Here is a screenshot of how mine looks: [per1] and [per2] are just the multichar_responses I want differently...and it will go up to [per10].


    I would so be glad for any help, and thanks for the upper script!

    Best,

    Hülya


  • Hi Hülya,


    If you need to record 10 responses, you have to call the word_frag_sequence ten times and log the response at the very end of each iteration. So basically, for each response you want your participants to make, you need to run the entire response collection loop once.

    From what you describe it seems like you don't call the loop often enough. How long is your Questionnaire loop table and how many repeats have you set? You can also share the experiment.


    Eduard

    Buy Me A Coffee

  • Hi Eduard,

    Sorry for asking about it in the other discussion too. I think I figured it out with your answer here - there ws no questionnaire loop table but only one sketchpad with 10 different empty variables that participants needed to put an input for. :)

    Thank you very much!

    Cheers,

    H

  • Hiya

    @Skilli thanks for the template... :)

    @hulya Can I ask... did you find a solution to be able to collect 10 responses on one sketchpad?

    Or generally, does anyone have an idea of if/how it would be possible to collect 3 responses to one item. For example in the experiment above from @Skilli - three different responses per fragment (before moving on to the next fragment)?

    Thanks all!

    Ali

  • edited July 2020

    Hi all, 

    @Skilli Thanks for the template. It is handy, and it helps me to build my experiment easily. 

  • @AliW Hi,

    So sorry for my late response - yes, I found one: Please see this discussion

    https://forum.cogsci.nl/discussion/4737/text-input-form-for-use-with-jatos

    Here, the multichar_response.osexp example works perfect to get an input. But check out the multichar_response_revised.osexp in the same discussion. I basically replicated the codes for 10 times and used a linked sketchpad in 10 loops with that inline_script. I had to adjust every inline_script for each loop for my needs, though: basically changing the variable names and etc. Also be careful about the break if statements on the items, you may need to change them too, and in general about the names of the items. If you would have more questions about it, I am happy to help - for the first time I can provide in the forum! :))

    Cheers~

    Hülya

  • Hi everyone,

    @sebastiaan,

    I am using the Word Fragment Task that @Skilli has put together. When using the task on OSWeb, a '0' appears when you start typing a word (see below). Is there a reason why this is happening? How would I get this from showing up when participants begin to type?

    Thanks,

    Beth

  • Hi @brobinson ,

    The 0-thing was a bug in previous versions of OSWeb. If you update OSWeb, or simply grab the latest release of OpenSesame, then this should be resolved!

    Cheers,

    Sebastiaan

  • Does anyone else have the problem that when they hit enter in the offline version (not using a browser) that it doesn't register? It doesn't register as text either, but where it should be the trigger to move on to the next input, it doesn't do anything. Any letters then typed after that are added to the same string. In the browser it works seamlessly, but I wanted to try and see how the log looks at the end of the experiment so I'm trying it in OpenSesame. Or am I missing a setting somewhere? Thanks!

  • @AliW πŸ€” I don't see this, but it suggests that the enter key has a different name on your system, for some reason. (The experiment assumes it's either 'return' or 'enter'. That's hard-coded into the break-if statement of get_input_loop.) The experiment prints out the name of the pressed keys to the console (debug window), so you can check there what you see when you press enter. What do you see?

  • edited August 2020

    @sebastiaan - Aha, could it be down to me using a German computer...?!

    I can't get it to 'bug' at that point. It simply does nothing! The enter key moves me successfully on to the next page up until that point of the experiment. It just won't let me move on the next input and won't crash either to show me the debug window. I can just click Esc and Q to quit. Is there somewhere in the code I would be able to see what was logged if the experiment was deliberately ended?

  • Hi Ali,

    Have you already figured this out? You don't need to "bug" the experiment. If you don't run the experiment full screen, you can monitor the debug window while doing the experiment.

    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