Howdy, Stranger!

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

Supported by

Form text input parameters

Hello,

I would like to present a list of words to memorize and then add a form text input to allow for a 3 minutes free recall. The problem is that when participants press the "enter" key, the form text closes.

How can I set parameters to allow only a specific key to end the recall ?

Hope that makes sense and thanks in advance for your help :-)

Comments

  • Hi @Naïde,

    The form is a great feature to collect text but it does not offer the option to specify another key than ENTER/RETURN to validate the input and end the form. Also, it does not allow you to set a time limit.

    In your case, what you'd need is to use some coding, collect the response from participant key by key, parsing it to implement certains events depending on they keys they press, appending the responses into a string, and defining how to end the input.

    Here's some code initially written by @sebastiaan (couldn't trace the original post on the forum but I had downloaded his example at the time 'cause it's some cool coding) and that I just modified a little. The basic task consisted in typing a specific word within a certain time limit. I just modified the response stage to allow ENTER/RETURN to be pressed and insert a line break, for the space bar to be pressed and insert a space, and to end the key input when the participant presses the "END" key on their keboard.

    My suggestion would be to either instruct participants to separate their responses with a space or with ENTER (but not both, 'cause that might make the data processing more complicated afterwards). You'd still have to then write your own code to parse the response and separate into the different words they typed and process that data ni however way you require.

    Hopefully this example will give you the hits you need to move forward with your experiment.

    Best,

    Fabrice.

    Buy Me A Coffee

  • Hello @Fab,

    Thank you very much for your help and for the task example. I hoped that I could just add some parameters to the form, but I actually see that I will need to do much more coding than I expected. Anyway you gave me the start to implement my programm, thanks again !

    Best,

    Naïde

Sign In or Register to comment.