Can ODK calculate if a text is filled or not

Hi there,

I am relatively new as a programmer and I appreciate your help.

This is for household roster. I would like to first fill in names of
household members, and then calculate if each text for name is filled or
not, so I can generate a list of names, and value of household size.
Since in Senegal, there are big household sizes, I think it would be better
to fill a list of household names before asking about household size.

Can ODK calculate if a text is filled or not? If yes, what is the function?

Thank you!

Best, E

Hi, just a thought from newbie, but you can definitely use the repeat function, so that they can add family members until they're all covered. You could write something like this:

type
begin repeat
text
integer
end repeat

and in the label column

label
Family Members
Name
Age

Try it :slight_smile:

Sofia

Hi, which type the check would be? I mean, the field to be checked is a
number or a string? Is mandatory?

Thanks

··· El mié., 18 de marzo de 2015 22:52, Eva Qiu escribió:

Hi there,

I am relatively new as a programmer and I appreciate your help.

This is for household roster. I would like to first fill in names of
household members, and then calculate if each text for name is filled or
not, so I can generate a list of names, and value of household size.
Since in Senegal, there are big household sizes, I think it would be
better to fill a list of household names before asking about household
size.

Can ODK calculate if a text is filled or not? If yes, what is the
function?

Thank you!

Best, E

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi there,

The type is text, and the enumerator can write in the text box a name, or leave it as blank. I would like to calculate if this text box is filled or not. My question is if this is possible to calculate whether a string or text is filled or not in ODK?
To fill in the text box is not required because I would like to use field-list to have a list of text boxes to fill in names of household members. In Senegal, there could be a household of even more than 50 household members. I want to have a screen that shows up all the text boxes to fill in names, and then I want to calculate if these text boxes are filled or not, so I can calculate the household size. Does this make sense?

Thank you.

Eva

··· On Wednesday, March 18, 2015 at 5:52:11 PM UTC-4, Eva Qiu wrote: > Hi there, > > > I am relatively new as a programmer and I appreciate your help. > > > This is for household roster. I would like to first fill in names of household members, and then calculate if each text for name is filled or not, so I can generate a list of names, and value of household size. > Since in Senegal, there are big household sizes, I think it would be better to fill a list of household names before asking about household size. > > > Can ODK calculate if a text is filled or not? If yes, what is the function? > > > Thank you! > > > Best, E

Hi,

Not sure I understand your follow up question, but you can get one question
or a group of questions to be repeated. So, my little example was a guess
at what you would like to ask, like the name and age of a person/household
member. So when you put "text" in the 'type' column you can put "Name of
person" in the 'label' column, or "What is your name?". Or if you wanted a
number answer you would put 'type' "integer" and put write "Age of person"
or similar in the 'label' column (label is what the survey taker sees).

So then if you do something like that and use the "begin repeat" and "end
repeat" the survey taker will see those questions once, but also a little +
sign that they can click to repeat those questions and therefore add more
family members.

Did that answer your question?

··· 2015-03-19 12:48 GMT+07:00 Angelo Lazzari :

Hi, which type the check would be? I mean, the field to be checked is a
number or a string? Is mandatory?

Thanks

El mié., 18 de marzo de 2015 22:52, Eva Qiu flowerqc@gmail.com escribió:

Hi there,

I am relatively new as a programmer and I appreciate your help.

This is for household roster. I would like to first fill in names of
household members, and then calculate if each text for name is filled or
not, so I can generate a list of names, and value of household size.
Since in Senegal, there are big household sizes, I think it would be
better to fill a list of household names before asking about household
size.

Can ODK calculate if a text is filled or not? If yes, what is the
function?

Thank you!

Best, E

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/sq35J1weXHo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Oh, sorry thought that was question posed by Eva.

Den torsdag 19 mars 2015 kl. 14:30:21 UTC+7 skrev Sofia Valentin:

··· > > Hi, > > Not sure I understand your follow up question, but you can get one > question or a group of questions to be repeated. So, my little example was > a guess at what you would like to ask, like the name and age of a > person/household member. So when you put "text" in the 'type' column you > can put "Name of person" in the 'label' column, or "What is your name?". Or > if you wanted a number answer you would put 'type' "integer" and put write > "Age of person" or similar in the 'label' column (label is what the survey > taker sees). > > So then if you do something like that and use the "begin repeat" and "end > repeat" the survey taker will see those questions once, but also a little + > sign that they can click to repeat those questions and therefore add more > family members. > > Did that answer your question? > > > > 2015-03-19 12:48 GMT+07:00 Angelo Lazzari : > >> Hi, which type the check would be? I mean, the field to be checked is a >> number or a string? Is mandatory? >> >> Thanks >> >> El mié., 18 de marzo de 2015 22:52, Eva Qiu escribió: >> >>> Hi there, >>> >>> I am relatively new as a programmer and I appreciate your help. >>> >>> This is for household roster. I would like to first fill in names of >>> household members, and then calculate if each text for name is filled or >>> not, so I can generate a list of names, and value of household size. >>> Since in Senegal, there are big household sizes, I think it would be >>> better to fill a list of household names before asking about household >>> size. >>> >>> Can ODK calculate if a text is filled or not? If yes, what is the >>> function? >>> >>> Thank you! >>> >>> Best, E >>> >>> -- >>> -- >>> Post: opendatakit@googlegroups.com >>> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >>> Options: http://groups.google.com/group/opendatakit?hl=en >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "ODK Community" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to opendatakit+unsubscribe@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> -- >> Post: opendatakit@googlegroups.com >> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en >> >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "ODK Community" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/opendatakit/sq35J1weXHo/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> opendatakit+unsubscribe@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > >