I would like you to teach me how I can limit input of Textbox only to numeric values, specifically 0 - 1000.
Textbox components accept all types of text by default.
However, I would like to make a routine as below to collect valid data.
1: Participant can input numeric values and end a routine by pressing key (e.g., space).
2: If participant tries to input other values, such as alphabet and NULL, error message appears and they are asked to input values again.
3: Values are collected (only valid ones are enough).
All I have done so far is make 1 procedure with builder.
Could I ask another question?
Do you think it is error-occuring code that a routine (trial) of input text is ended by key pressing?
I set key response (space) to end the routine instead of click the button in your demo, and it seems to work.
I know there is Alert 4405, “Editable textbox component textbox and keyboard component key_resp in the same routine may compete for keypresses”
I would be very grateful if you could respond to the question above.
Hi There, That looks like an alert rather than an error (so shouldn’t stop the experiment running) it is just warning you that you have a keyboard response and an editable textbox in the same routine (which is fine if you want participants to submit their typed response by pressing a certain key
Hi Becca, in your example, in Trial2, you have 2 textboxes appear one under the other. Is there a way to put 5 textboxes in the same row? I put them in different positions on x-axis (keeping the y-axis at 0) but they still overlap… Please advise (For online experiments).
Hi Becca,
Thanks for the answer.
I manipulated the size, but it does not affect the length of the textbox, see the below screenshot. Any idea how to set the length to a maximum of 2 characters?
Thank you,
Aya