[open] Form Text Input doesn't log data
I used 4 Text Input forms to collect some demographic data and a logger item to log the data. Two of the forms work perfectly fine and I can track the data in the data file. The two others don't, although I integrated them exactly the same way.
Here are the codes for both of them:
1. Form
set cols "1"
form_question
What is your age?
After you typed your response, press the "Enter" button to continue.
end
set form_title "Age"
set form_var "response_age"
set rows "1;1;6"
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" stub="" return_accepts="yes" var="[response_age]"
2nd Form
set cols "1"
form_question
What is your gender?
Please type "f" for female or "m" for male.
end
set form_title "Gender"
set form_var "gender_response"
set rows "1;1;6"
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" stub="" return_accepts="yes" var="[gender_response]"
Does anyone know what the matter is? I was wondering if it is a problem with the first one, that the participants should put in numbers and not text? Does that make any difference? Do you know alternatives to the text input form?
Please help, I planned running participants on Monday and I'm pretty desperate :-(.
Thanks in advance,
Lisa
Comments
Hi Lisa,
What exactly do you mean with "they don't track the data properly?". Could you provide more information on how you expect the item to work, and what it actually does. Also, the code you posted are from the two forms that do not work, right? Could you also share the forms that do work, so we could compare whether something funny is happening there?
Thanks,
Eduard