Howdy, Stranger!

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

Supported by

OpenSesame forms: text

Hey! I'm trying to set up the text form (form_text_display) for my exp, but it runs somehow wrong: when I insert the data into the box (age in this case), the button "Ok" simply doesn't work. I can proceed by using "Enter" on my keyboard; however, it's not very convenient to explain every participant in the study why they cannot use "Ok" button. What might be the reason for the problem?

set timeout infinite
set spacing 10
set rows "1;2;2;1;2;1"
set only_render no
set ok_text Ok
set margins "50;50;50;50"
set form_title "<span size=24>Age</span>"
set form_text "Your age"
set description "A simple text display form"
set cols "1;1;1"
set _theme gray
widget 0 0 3 1 label text="[form_title]"
widget 0 2 3 1 label center=no text="[form_text]"
widget 1 3 1 1 text_input return_accepts=yes var=age
widget 1 5 1 1 button text="[ok_text]"_

P.S.: another quick question: is there any way to restrict the type of characters in the box so that only numerical values are possible?
Thanks in advance!

Comments

Sign In or Register to comment.