Constraint that is a warning in ODK Collect. Even possible?

Here is our situation.

We have a series of basic questions, for instance # persons in household, #
of adults, # of boys, # of girls. Obviously if we had a contstraint then
the # of persons should equal the number of adults + boys + girls and so
on. The thing is, our surveys repeat on girls and we are more concerned
that each girl gets questions asked about her than we are accuracy. We're
afraid an enumerator might just reduce the actual number of girls to match
the expected number of occupants in the household rather than swipe back -
thereby missing the section on questions about each girl. So we have
typically NOT created contstraints for these questions. Some people still
would like a message to be shown such as "You wrote that this house has x
number of girls, that means the number of girls and boys together is
greater than the total number of occupants in the house, are you sure that
is correct?" or similar - BUT then an enumerator can choose to ignore.

So tl:dr Possible for a constraint (or any other way) to generate a
warning but still allow the survey to go on? I don't think so but am
willing to learn a way how. Generally use xlsforms but if it can be done in
xforms we'll do it.

Thanks

Craig Savel
Population Council

PS Whether this is a good idea or not in principle to have a warning
rather than an actual constraint is interesting but not germaine to this
technical question.

Yes.

Make an acknowledge prompt that has a relevant condition that is true when
the-sums-don't-match.

And then the text of an acknowledge prompt would state "oops, the numbers X
and Y don't add up to Z. OK?"

And the data collector can then OK the prompt.

And you could make it required, or not. Not sure that would add any value.

··· On Fri, Apr 1, 2016 at 11:31 AM, Craig Savel wrote:

Here is our situation.

We have a series of basic questions, for instance # persons in household,

of adults, # of boys, # of girls. Obviously if we had a contstraint then

the # of persons should equal the number of adults + boys + girls and so
on. The thing is, our surveys repeat on girls and we are more concerned
that each girl gets questions asked about her than we are accuracy. We're
afraid an enumerator might just reduce the actual number of girls to match
the expected number of occupants in the household rather than swipe back -
thereby missing the section on questions about each girl. So we have
typically NOT created contstraints for these questions. Some people still
would like a message to be shown such as "You wrote that this house has x
number of girls, that means the number of girls and boys together is
greater than the total number of occupants in the house, are you sure that
is correct?" or similar - BUT then an enumerator can choose to ignore.

So tl:dr Possible for a constraint (or any other way) to generate a
warning but still allow the survey to go on? I don't think so but am
willing to learn a way how. Generally use xlsforms but if it can be done in
xforms we'll do it.

Thanks

Craig Savel
Population Council

PS Whether this is a good idea or not in principle to have a warning
rather than an actual constraint is interesting but not germaine to this
technical question.

--

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.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Yes of course! This worked perfectly, thanks much.

··· On Friday, April 1, 2016 at 4:51:11 PM UTC-4, Mitch Sundt wrote: > > Yes. > > Make an acknowledge prompt that has a relevant condition that is true when > the-sums-don't-match. > > And then the text of an acknowledge prompt would state "oops, the numbers > X and Y don't add up to Z. OK?" > > And the data collector can then OK the prompt. > > And you could make it required, or not. Not sure that would add any value. > > > On Fri, Apr 1, 2016 at 11:31 AM, Craig Savel <xet...@gmail.com > wrote: > >> Here is our situation. >> >> We have a series of basic questions, for instance # persons in household, >> # of adults, # of boys, # of girls. Obviously if we had a contstraint then >> the # of persons should equal the number of adults + boys + girls and so >> on. The thing is, our surveys repeat on girls and we are more concerned >> that each girl gets questions asked about her than we are accuracy. We're >> afraid an enumerator might just reduce the actual number of girls to match >> the expected number of occupants in the household rather than swipe back - >> thereby missing the section on questions about each girl. So we have >> typically NOT created contstraints for these questions. Some people still >> would like a message to be shown such as "You wrote that this house has x >> number of girls, that means the number of girls and boys together is >> greater than the total number of occupants in the house, are you sure that >> is correct?" or similar - BUT then an enumerator can choose to ignore. >> >> So tl:dr Possible for a constraint (or any other way) to generate a >> *warning* but still allow the survey to go on? I don't think so but am >> willing to learn a way how. Generally use xlsforms but if it can be done in >> xforms we'll do it. >> >> Thanks >> >> Craig Savel >> Population Council >> >> >> PS Whether this is a good idea or not in principle to have a *warning* >> rather than an actual constraint is interesting but not germaine to this >> technical question. >> >> -- >> -- >> Post: opend...@googlegroups.com >> Unsubscribe: opendatakit...@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...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >