|
Post by Maya on Apr 22, 2020 17:24:51 GMT
Hi,
I'm using readkeys to get an identifier from the participant on the start my experiment. My identifier is 5 digits long.
My curent usage is:
task mytask table mytable show bitmap img readkeys option show -350 -45 text color black readkeys option space 60 readkeys option size 5 readkeys option placeholders 50 50 readkeys @1 &responsetime 1. Is it possible to enforce readkeys to a specific lengh? now, the user can enter whatever number of digits he wants as long as the total length is smaller than 5 2. Is it possible to enforce specific keys? like in readkey command?
Thank you,m
|
|
|
Post by PsyToolkit on Apr 22, 2020 17:52:27 GMT
Currently, the "option size" is the maximum number. So in your example, people can provide anything up to 5 characters.
Unlike readkey, any character can be entered.
In the future, there might be more options. Can you tell us why and what you want?
|
|
|
Post by Maya on Apr 22, 2020 17:58:47 GMT
In this case, the input is an identifier of the participant that is later used to merge additional data that we have on this participant. Therefore, I have to enforce the participant to actually submit his ID and not skip the entire step or enter a shorter text that we won't be able to use.
I would love it if you can implement the following requirements: 1. add a minimum length for the text 2. add keys restriction like in readkey 3. if 1 isn't possible - an option to check the length of the WORD
Thank you
|
|
|
Post by PsyToolkit on Apr 22, 2020 18:50:35 GMT
I see, but there is a much simpler way to do it! I am of course not entirely sure about what you are trying to do, but when you do online data collection, your online experiment must be embedded in a survey, which gives you options to enter information like age, identification, and what have you.
In your case, you can just have a textline where you ask for the person's ID number and when you download all the PsyToolkit data, the ID is part of what you get in your downloaded data spreadsheet.
|
|
|
readkeys
Apr 23, 2020 2:59:26 GMT
via mobile
Post by Maya on Apr 23, 2020 2:59:26 GMT
Yes, I'm currently embedding the experiment within a survey.
Can I control the text min/max size and valid keys via the survey? Does it support Hebrew?
|
|
|
Post by PsyToolkit on Apr 23, 2020 10:14:15 GMT
You can set the size of a text field, but I am not 100% sure what you need. It seems very detailed, if you email me, I can help with your specific case.
|
|