Please Help as soon as possible! Only two options can be selected together

Dear all,

I am facing a deadline to complete a questionnaire in ODK But I have two
problems that needs to be solved before tomorrow.

Qa: Did you or anyone else in your household receive cloths? ( select all
that apply)
1=Yes myself
2=Yes someone else in the household
3=no
4=not applicable
8=dont know

Only 1 and 2 can be selected as a combination. below is the question

Qb: I have constructed a roster and attached is the file.

I want to have a line_ID generated before one enters the first hh member
name.... and then line ID geneted again once one enters the second hh
member name.

Please help help

roster.xls (29 KB)

Hi Rod,

Please note that this is a mailing list of volunteers. There are no
guarantees of responses (timely or otherwise). This is especially true on
weekends.

Qa. It sounds like you'd like it so if someone selects 1 or 2 they can't
also select 3 or 4 or 8. The way to do that is with a constraint.
not((selected(., '1') or selected(., '2')) and (selected(., '3') or
selected(., '4') or selected(., '8')))

Qb. I have no idea what you are asking. There is no such thing as a line ID.

Yaw

··· On Sun, Oct 30, 2016 at 3:20 PM, Rod wrote:

Dear all,

I am facing a deadline to complete a questionnaire in ODK But I have two
problems that needs to be solved before tomorrow.

Qa: Did you or anyone else in your household receive cloths? ( select all
that apply)
1=Yes myself
2=Yes someone else in the household
3=no
4=not applicable
8=dont know

Only 1 and 2 can be selected as a combination. below is the question

Qb: I have constructed a roster and attached is the file.

I want to have a line_ID generated before one enters the first hh member
name.... and then line ID geneted again once one enters the second hh
member name.

Please help help

--

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 Rod,

The second part of your question sounds like you want to create a
calculation at the start of your roster with:

position(..)

That will record the line number of that record within the roster.

Jason

··· On Monday, October 31, 2016 at 7:36:58 AM UTC-4, Yaw Anokwa wrote: > > Hi Rod, > > Please note that this is a mailing list of volunteers. There are no > guarantees of responses (timely or otherwise). This is especially true on > weekends. > > Qa. It sounds like you'd like it so if someone selects 1 or 2 they can't > also select 3 or 4 or 8. The way to do that is with a constraint. > not((selected(., '1') or selected(., '2')) and (selected(., '3') or > selected(., '4') or selected(., '8'))) > > Qb. I have no idea what you are asking. There is no such thing as a line > ID. > > Yaw > > On Sun, Oct 30, 2016 at 3:20 PM, Rod <sydney...@gmail.com > wrote: > >> Dear all, >> >> I am facing a deadline to complete a questionnaire in ODK But I have two >> problems that needs to be solved before tomorrow. >> >> >> Qa: Did you or anyone else in your household receive cloths? ( select all >> that apply) >> 1=Yes myself >> 2=Yes someone else in the household >> 3=no >> 4=not applicable >> 8=dont know >> >> Only 1 and 2 can be selected as a combination. below is the question >> >> Qb: I have constructed a roster and attached is the file. >> >> I want to have a line_ID generated before one enters the first hh member >> name.... and then line ID geneted again once one enters the second hh >> member name. >> >> Please help help >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> -- >> -- >> 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. >> > >

Dear Yaw,

Thanks for this. It works perfectly.

··· On Oct 31, 2016 1:36 PM, "Yaw Anokwa" wrote:

Hi Rod,

Please note that this is a mailing list of volunteers. There are no
guarantees of responses (timely or otherwise). This is especially true on
weekends.

Qa. It sounds like you'd like it so if someone selects 1 or 2 they can't
also select 3 or 4 or 8. The way to do that is with a constraint.
not((selected(., '1') or selected(., '2')) and (selected(., '3') or
selected(., '4') or selected(., '8')))

Qb. I have no idea what you are asking. There is no such thing as a line
ID.

Yaw

On Sun, Oct 30, 2016 at 3:20 PM, Rod sydneyrodney@gmail.com wrote:

Dear all,

I am facing a deadline to complete a questionnaire in ODK But I have two
problems that needs to be solved before tomorrow.

Qa: Did you or anyone else in your household receive cloths? ( select all
that apply)
1=Yes myself
2=Yes someone else in the household
3=no
4=not applicable
8=dont know

Only 1 and 2 can be selected as a combination. below is the question

Qb: I have constructed a roster and attached is the file.

I want to have a line_ID generated before one enters the first hh member
name.... and then line ID geneted again once one enters the second hh
member name.

Please help help

--

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/AU50MWCA230/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.

Dear Jason,

Yes, thats exactly what I want...

··· On Nov 1, 2016 2:52 PM, "Jason Ives" wrote:

Hi Rod,

The second part of your question sounds like you want to create a
calculation at the start of your roster with:

position(..)

That will record the line number of that record within the roster.

Jason

On Monday, October 31, 2016 at 7:36:58 AM UTC-4, Yaw Anokwa wrote:

Hi Rod,

Please note that this is a mailing list of volunteers. There are no
guarantees of responses (timely or otherwise). This is especially true on
weekends.

Qa. It sounds like you'd like it so if someone selects 1 or 2 they can't
also select 3 or 4 or 8. The way to do that is with a constraint.
not((selected(., '1') or selected(., '2')) and (selected(., '3') or
selected(., '4') or selected(., '8')))

Qb. I have no idea what you are asking. There is no such thing as a line
ID.

Yaw

On Sun, Oct 30, 2016 at 3:20 PM, Rod sydney...@gmail.com wrote:

Dear all,

I am facing a deadline to complete a questionnaire in ODK But I have
two problems that needs to be solved before tomorrow.

Qa: Did you or anyone else in your household receive cloths? ( select
all that apply)
1=Yes myself
2=Yes someone else in the household
3=no
4=not applicable
8=dont know

Only 1 and 2 can be selected as a combination. below is the question

Qb: I have constructed a roster and attached is the file.

I want to have a line_ID generated before one enters the first hh
member name.... and then line ID geneted again once one enters the second
hh member name.

Please help help

--

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.

--
--
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/AU50MWCA230/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.