Text input
Hi everyone,
I need to add a simple text input screen in my experiment. It works perfectly on OS but not on OSweb. Any thoughts or experience on this?
Here is my code:
set timeout infinite set spacing 10 set rows "1;1;6" set only_render no set margins "50;50;50;50" set form_var response set form_title "Color question" set form_text "What was the color of xxx? (Type your answer below and press enter)" __form_question__ What is the color of xxx? (Write your answer and press enter) __end__ set description "A simple text input form" set cols 1 set _theme gray widget 0 0 1 1 label text="[form_title]" widget 0 1 1 1 label center=no text="[form_question]" widget 0 2 1 1 text_input focus=yes return_accepts=yes stub="" var="[form_var]"
Comments
Hi @esraoguz ,
Forms are not supported in OSWeb. (You can see a list of supported functionality here.) But you can also collect multiple-character input with a combination of scripting and
sketchpaditems; not terribly elegant, but it works for simple purposes. See this discussion for an example script.Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!