Logic: 1 of 2 questions must be answered to move forward

Hi All,

I am working on a pretty long and complex form and was hoping to get
some help with one of my questions.

We have many questions where the participant can either answer the
question or choose "Don't Know" as an option. For example:

  1. How many years old are you? ________
    Don't know

I have put these into a group so that they show up on the same screen
together.

Now, I need to add logic to make it so the surveyor has to choose one
or the other, but not both, before they can move onto the next
question.

Any ideas?

Thanks
Evelyn

Hi Evelyn,

I think the easiest way to solve the age problem is to start with an
age entry mode that asks if age is being entered by date or age in
years. On that screen, you can also add 'Don't Know'. Then your next
prompt will ask the appropriate question.

See the sample form at http://pastie.org/3257103.

Yaw

ยทยทยท On Thu, Jan 26, 2012 at 07:37, Evelyn Castle wrote: > Hi All, > > I am working on a pretty long and complex form and was hoping to get > some help with one of my questions. > > We have many questions where the participant can either answer the > question or choose "Don't Know" as an option. For example: > 1. How many years old are you? ________ > Don't know > > I have put these into a group so that they show up on the same screen > together. > > Now, I need to add logic to make it so the surveyor has to choose one > or the other, but not both, before they can move onto the next > question. > > Any ideas? > > Thanks > Evelyn > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en

Hi Yaw,

Evelyn is building the form for a project I am running. Your suggestion
doesn't really help us because we are not allowing the enumerator to choose
how to enter the age. She must enter it in completed years. We have the
same problem with dates, for example:

What is your date of birth:
day: |||
month: |||
year: |||
don't know

Here they have to enter at least the year of birth or "don't know".

One alternative is to train enumerators to enter -99 if not even the year
is known, but we were looking for a neater solution where we could still
keep the "don't know" option, but make it possible for them to choose one
one or the other without skipping the question.

Thanks,
Laura

ยทยทยท On Thu, Jan 26, 2012 at 4:42 PM, Yaw Anokwa wrote:

Hi Evelyn,

I think the easiest way to solve the age problem is to start with an
age entry mode that asks if age is being entered by date or age in
years. On that screen, you can also add 'Don't Know'. Then your next
prompt will ask the appropriate question.

See the sample form at http://pastie.org/3257103.

Yaw

On Thu, Jan 26, 2012 at 07:37, Evelyn Castle evelyn@ehealthnigeria.org wrote:

Hi All,

I am working on a pretty long and complex form and was hoping to get
some help with one of my questions.

We have many questions where the participant can either answer the
question or choose "Don't Know" as an option. For example:

  1. How many years old are you? ________
    Don't know

I have put these into a group so that they show up on the same screen
together.

Now, I need to add logic to make it so the surveyor has to choose one
or the other, but not both, before they can move onto the next
question.

Any ideas?

Thanks
Evelyn

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

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

Hi Yaw,

To clarify a bit on what Laura was saying, I would like to be able to have
logic that says:

  • at least 1 question in a group must be answered
  • only 1 question in a group can be answered

Is that logic possible?
Sorry, the birth date question was probably not the best example.

Thanks
Evelyn

ยทยทยท On Fri, Jan 27, 2012 at 4:29 PM, Laura Costica wrote:

Hi Yaw,

Evelyn is building the form for a project I am running. Your suggestion
doesn't really help us because we are not allowing the enumerator to choose
how to enter the age. She must enter it in completed years. We have the
same problem with dates, for example:

What is your date of birth:
day: |||
month: |||
year: |||
don't know

Here they have to enter at least the year of birth or "don't know".

One alternative is to train enumerators to enter -99 if not even the year
is known, but we were looking for a neater solution where we could still
keep the "don't know" option, but make it possible for them to choose one
one or the other without skipping the question.

Thanks,
Laura

On Thu, Jan 26, 2012 at 4:42 PM, Yaw Anokwa yanokwa@gmail.com wrote:

Hi Evelyn,

I think the easiest way to solve the age problem is to start with an
age entry mode that asks if age is being entered by date or age in
years. On that screen, you can also add 'Don't Know'. Then your next
prompt will ask the appropriate question.

See the sample form at http://pastie.org/3257103.

Yaw

On Thu, Jan 26, 2012 at 07:37, Evelyn Castle evelyn@ehealthnigeria.org wrote:

Hi All,

I am working on a pretty long and complex form and was hoping to get
some help with one of my questions.

We have many questions where the participant can either answer the
question or choose "Don't Know" as an option. For example:

  1. How many years old are you? ________
    Don't know

I have put these into a group so that they show up on the same screen
together.

Now, I need to add logic to make it so the surveyor has to choose one
or the other, but not both, before they can move onto the next
question.

Any ideas?

Thanks
Evelyn

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

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

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

--
Evelyn Castle
Director, eHealth Nigeria

25 Race Course Road, Kano, Ng
mobile: (NG) 0809-515-0585
(NG) 0813-883-2395
(US) 714-721-3157

Evelyn,

I think the best you can do is to ask what they know or don't know in
a first prompt, then have the next set of prompts ask for the known
data. There is no way that I know of to apply logic on an entire group
and there is also no way to have prompts in a group dynamically change
while that group is being displayed. Maybe Drew or Clayton know a
clever way around this, but I can't think of one...

Yaw

ยทยทยท On Fri, Jan 27, 2012 at 07:43, Evelyn Castle wrote: > Hi Yaw, > > To clarify a bit on what Laura was saying, I would like to be able to have > logic that says: > - at least 1 question in a group must be answered > - only 1 question in a group can be answered > > Is that logic possible? > Sorry, the birth date question was probably not the best example. > > Thanks > Evelyn > > > On Fri, Jan 27, 2012 at 4:29 PM, Laura Costica wrote: >> >> Hi Yaw, >> >> Evelyn is building the form for a project I am running. Your suggestion >> doesn't really help us because we are not allowing the enumerator to choose >> how to enter the age. She must enter it in completed years. We have the same >> problem with dates, for example: >> >> What is your date of birth: >> day: |__|__| >> month: |__|__| >> year: |__|__| >> don't know >> >> Here they have to enter at least the year of birth or "don't know". >> >> One alternative is to train enumerators to enter -99 if not even the year >> is known, but we were looking for a neater solution where we could still >> keep the "don't know" option, but make it possible for them to choose one >> one or the other without skipping the question. >> >> Thanks, >> Laura >> >> >> On Thu, Jan 26, 2012 at 4:42 PM, Yaw Anokwa wrote: >>> >>> Hi Evelyn, >>> >>> I think the easiest way to solve the age problem is to start with an >>> age entry mode that asks if age is being entered by date or age in >>> years. On that screen, you can also add 'Don't Know'. Then your next >>> prompt will ask the appropriate question. >>> >>> See the sample form at http://pastie.org/3257103. >>> >>> Yaw >>> >>> On Thu, Jan 26, 2012 at 07:37, Evelyn Castle wrote: >>> > Hi All, >>> > >>> > I am working on a pretty long and complex form and was hoping to get >>> > some help with one of my questions. >>> > >>> > We have many questions where the participant can either answer the >>> > question or choose "Don't Know" as an option. For example: >>> > 1. How many years old are you? ________ >>> > Don't know >>> > >>> > I have put these into a group so that they show up on the same screen >>> > together. >>> > >>> > Now, I need to add logic to make it so the surveyor has to choose one >>> > or the other, but not both, before they can move onto the next >>> > question. >>> > >>> > Any ideas? >>> > >>> > Thanks >>> > Evelyn >>> > >>> > -- >>> > Post: opendatakit@googlegroups.com >>> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >>> > Options: http://groups.google.com/group/opendatakit?hl=en >>> >>> -- >>> Post: opendatakit@googlegroups.com >>> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >>> Options: http://groups.google.com/group/opendatakit?hl=en >> >> >> -- >> Post: opendatakit@googlegroups.com >> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en > > > > > -- > Evelyn Castle > Director, eHealth Nigeria > www.eHealthNigeria.org > 25 Race Course Road, Kano, Ng > mobile: (NG) 0809-515-0585 > (NG) 0813-883-2395 > (US) 714-721-3157 > > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en

Hi Evelyn,

I think one of the two things you're looking for is possible.

at least 1 question in a group must be answered--
If all of your questions are on the same screen, you can just make the
"required=" logic for the last question to say if all of the other
questions are blank, then this question is required. That will prevent the
user from going forward until at least one question is answered.

only 1 question in a group can be answered--
In theory, you should be able to do put a constraint on the current
question based on a previous answer. Something like:
(constraint for q4
is that the answer to q3 is greater than 5)
but it appears javarosa doesn't support this. it only supports the "."
operator, so constraints can only relate to the current node.
So I don't think this is currently possible.

Hope that helps.
-Carl

ยทยทยท On Sun, Jan 29, 2012 at 2:17 PM, Yaw Anokwa wrote:

Evelyn,

I think the best you can do is to ask what they know or don't know in
a first prompt, then have the next set of prompts ask for the known
data. There is no way that I know of to apply logic on an entire group
and there is also no way to have prompts in a group dynamically change
while that group is being displayed. Maybe Drew or Clayton know a
clever way around this, but I can't think of one...

Yaw

On Fri, Jan 27, 2012 at 07:43, Evelyn Castle evelyn@ehealthnigeria.org wrote:

Hi Yaw,

To clarify a bit on what Laura was saying, I would like to be able to
have
logic that says:

  • at least 1 question in a group must be answered
  • only 1 question in a group can be answered

Is that logic possible?
Sorry, the birth date question was probably not the best example.

Thanks
Evelyn

On Fri, Jan 27, 2012 at 4:29 PM, Laura Costica laura.costica@gmail.com wrote:

Hi Yaw,

Evelyn is building the form for a project I am running. Your suggestion
doesn't really help us because we are not allowing the enumerator to
choose
how to enter the age. She must enter it in completed years. We have the
same
problem with dates, for example:

What is your date of birth:
day: |||
month: |||
year: |||
don't know

Here they have to enter at least the year of birth or "don't know".

One alternative is to train enumerators to enter -99 if not even the
year
is known, but we were looking for a neater solution where we could still
keep the "don't know" option, but make it possible for them to choose
one
one or the other without skipping the question.

Thanks,
Laura

On Thu, Jan 26, 2012 at 4:42 PM, Yaw Anokwa yanokwa@gmail.com wrote:

Hi Evelyn,

I think the easiest way to solve the age problem is to start with an
age entry mode that asks if age is being entered by date or age in
years. On that screen, you can also add 'Don't Know'. Then your next
prompt will ask the appropriate question.

See the sample form at http://pastie.org/3257103.

Yaw

On Thu, Jan 26, 2012 at 07:37, Evelyn Castle < evelyn@ehealthnigeria.org> wrote:

Hi All,

I am working on a pretty long and complex form and was hoping to get
some help with one of my questions.

We have many questions where the participant can either answer the
question or choose "Don't Know" as an option. For example:

  1. How many years old are you? ________
    Don't know

I have put these into a group so that they show up on the same screen
together.

Now, I need to add logic to make it so the surveyor has to choose one
or the other, but not both, before they can move onto the next
question.

Any ideas?

Thanks
Evelyn

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

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

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

--
Evelyn Castle
Director, eHealth Nigeria
www.eHealthNigeria.org
25 Race Course Road, Kano, Ng
mobile: (NG) 0809-515-0585
(NG) 0813-883-2395
(US) 714-721-3157

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

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

Hi Carol,

Thanks for sending this. It helps a ton!

Evelyn

ยทยทยท On Mon, Jan 30, 2012 at 5:21 AM, Carl Hartung wrote:

Hi Evelyn,

I think one of the two things you're looking for is possible.

at least 1 question in a group must be answered--
If all of your questions are on the same screen, you can just make the
"required=" logic for the last question to say if all of the other
questions are blank, then this question is required. That will prevent the
user from going forward until at least one question is answered.

only 1 question in a group can be answered--
In theory, you should be able to do put a constraint on the current
question based on a previous answer. Something like:
(constraint for
q4 is that the answer to q3 is greater than 5)
but it appears javarosa doesn't support this. it only supports the "."
operator, so constraints can only relate to the current node.
So I don't think this is currently possible.

Hope that helps.
-Carl

On Sun, Jan 29, 2012 at 2:17 PM, Yaw Anokwa yanokwa@gmail.com wrote:

Evelyn,

I think the best you can do is to ask what they know or don't know in
a first prompt, then have the next set of prompts ask for the known
data. There is no way that I know of to apply logic on an entire group
and there is also no way to have prompts in a group dynamically change
while that group is being displayed. Maybe Drew or Clayton know a
clever way around this, but I can't think of one...

Yaw

On Fri, Jan 27, 2012 at 07:43, Evelyn Castle evelyn@ehealthnigeria.org wrote:

Hi Yaw,

To clarify a bit on what Laura was saying, I would like to be able to
have
logic that says:

  • at least 1 question in a group must be answered
  • only 1 question in a group can be answered

Is that logic possible?
Sorry, the birth date question was probably not the best example.

Thanks
Evelyn

On Fri, Jan 27, 2012 at 4:29 PM, Laura Costica <laura.costica@gmail.com wrote:

Hi Yaw,

Evelyn is building the form for a project I am running. Your suggestion
doesn't really help us because we are not allowing the enumerator to
choose
how to enter the age. She must enter it in completed years. We have
the same
problem with dates, for example:

What is your date of birth:
day: |||
month: |||
year: |||
don't know

Here they have to enter at least the year of birth or "don't know".

One alternative is to train enumerators to enter -99 if not even the
year
is known, but we were looking for a neater solution where we could
still
keep the "don't know" option, but make it possible for them to choose
one
one or the other without skipping the question.

Thanks,
Laura

On Thu, Jan 26, 2012 at 4:42 PM, Yaw Anokwa yanokwa@gmail.com wrote:

Hi Evelyn,

I think the easiest way to solve the age problem is to start with an
age entry mode that asks if age is being entered by date or age in
years. On that screen, you can also add 'Don't Know'. Then your next
prompt will ask the appropriate question.

See the sample form at http://pastie.org/3257103.

Yaw

On Thu, Jan 26, 2012 at 07:37, Evelyn Castle < evelyn@ehealthnigeria.org> wrote:

Hi All,

I am working on a pretty long and complex form and was hoping to get
some help with one of my questions.

We have many questions where the participant can either answer the
question or choose "Don't Know" as an option. For example:

  1. How many years old are you? ________
    Don't know

I have put these into a group so that they show up on the same
screen
together.

Now, I need to add logic to make it so the surveyor has to choose
one
or the other, but not both, before they can move onto the next
question.

Any ideas?

Thanks
Evelyn

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

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

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

--
Evelyn Castle
Director, eHealth Nigeria
www.eHealthNigeria.org
25 Race Course Road, Kano, Ng
mobile: (NG) 0809-515-0585
(NG) 0813-883-2395
(US) 714-721-3157

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

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

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

--
Evelyn Castle
Director, eHealth Nigeria

25 Race Course Road, Kano, Ng
mobile: (NG) 0809-515-0585
(NG) 0813-883-2395
(US) 714-721-3157

Hi Carl,

Can you send an example of required='blank' logic.

I am trying to find an example online but can't seem to find anything. How
do you specify that the response is "blank"?

Thanks
Evelyn

ยทยทยท On Tue, Jan 31, 2012 at 3:10 PM, Evelyn Castle wrote:

Hi Carol,

Thanks for sending this. It helps a ton!

Evelyn

On Mon, Jan 30, 2012 at 5:21 AM, Carl Hartung carlhartung@gmail.comwrote:

Hi Evelyn,

I think one of the two things you're looking for is possible.

at least 1 question in a group must be answered--
If all of your questions are on the same screen, you can just make the
"required=" logic for the last question to say if all of the other
questions are blank, then this question is required. That will prevent the
user from going forward until at least one question is answered.

only 1 question in a group can be answered--
In theory, you should be able to do put a constraint on the current
question based on a previous answer. Something like:
(constraint for
q4 is that the answer to q3 is greater than 5)
but it appears javarosa doesn't support this. it only supports the "."
operator, so constraints can only relate to the current node.
So I don't think this is currently possible.

Hope that helps.
-Carl

On Sun, Jan 29, 2012 at 2:17 PM, Yaw Anokwa yanokwa@gmail.com wrote:

Evelyn,

I think the best you can do is to ask what they know or don't know in
a first prompt, then have the next set of prompts ask for the known
data. There is no way that I know of to apply logic on an entire group
and there is also no way to have prompts in a group dynamically change
while that group is being displayed. Maybe Drew or Clayton know a
clever way around this, but I can't think of one...

Yaw

On Fri, Jan 27, 2012 at 07:43, Evelyn Castle evelyn@ehealthnigeria.org wrote:

Hi Yaw,

To clarify a bit on what Laura was saying, I would like to be able to
have
logic that says:

  • at least 1 question in a group must be answered
  • only 1 question in a group can be answered

Is that logic possible?
Sorry, the birth date question was probably not the best example.

Thanks
Evelyn

On Fri, Jan 27, 2012 at 4:29 PM, Laura Costica < laura.costica@gmail.com> wrote:

Hi Yaw,

Evelyn is building the form for a project I am running. Your
suggestion
doesn't really help us because we are not allowing the enumerator to
choose
how to enter the age. She must enter it in completed years. We have
the same
problem with dates, for example:

What is your date of birth:
day: |||
month: |||
year: |||
don't know

Here they have to enter at least the year of birth or "don't know".

One alternative is to train enumerators to enter -99 if not even the
year
is known, but we were looking for a neater solution where we could
still
keep the "don't know" option, but make it possible for them to choose
one
one or the other without skipping the question.

Thanks,
Laura

On Thu, Jan 26, 2012 at 4:42 PM, Yaw Anokwa yanokwa@gmail.com wrote:

Hi Evelyn,

I think the easiest way to solve the age problem is to start with an
age entry mode that asks if age is being entered by date or age in
years. On that screen, you can also add 'Don't Know'. Then your next
prompt will ask the appropriate question.

See the sample form at http://pastie.org/3257103.

Yaw

On Thu, Jan 26, 2012 at 07:37, Evelyn Castle < evelyn@ehealthnigeria.org> wrote:

Hi All,

I am working on a pretty long and complex form and was hoping to
get
some help with one of my questions.

We have many questions where the participant can either answer the
question or choose "Don't Know" as an option. For example:

  1. How many years old are you? ________
    Don't know

I have put these into a group so that they show up on the same
screen
together.

Now, I need to add logic to make it so the surveyor has to choose
one
or the other, but not both, before they can move onto the next
question.

Any ideas?

Thanks
Evelyn

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

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

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

--
Evelyn Castle
Director, eHealth Nigeria
www.eHealthNigeria.org
25 Race Course Road, Kano, Ng
mobile: (NG) 0809-515-0585
(NG) 0813-883-2395
(US) 714-721-3157

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

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

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

--
Evelyn Castle
Director, eHealth Nigeria
www.eHealthNigeria.org
25 Race Course Road, Kano, Ng
mobile: (NG) 0809-515-0585
(NG) 0813-883-2395
(US) 714-721-3157

--
Evelyn Castle
Director, eHealth Nigeria

25 Race Course Road, Kano, Ng
mobile: (NG) 0809-515-0585
(NG) 0813-883-2395
(US) 714-721-3157

1 Like

Hi Evelyn,

That looks funny on email, zooming into the quotes its: /data/q1 = ''
(two ticks, not quotes)

and in your case you can chain questions together
/data/q1 = '' and /data/q1 = '' and...

Hope that helps,
Carl

ยทยทยท On Tue, Jan 31, 2012 at 7:02 AM, Evelyn Castle wrote:

Hi Carl,

Can you send an example of required='blank' logic.

I am trying to find an example online but can't seem to find anything. How
do you specify that the response is "blank"?

Thanks
Evelyn

On Tue, Jan 31, 2012 at 3:10 PM, Evelyn Castle evelyn@ehealthnigeria.orgwrote:

Hi Carol,

Thanks for sending this. It helps a ton!

Evelyn

On Mon, Jan 30, 2012 at 5:21 AM, Carl Hartung carlhartung@gmail.comwrote:

Hi Evelyn,

I think one of the two things you're looking for is possible.

at least 1 question in a group must be answered--
If all of your questions are on the same screen, you can just make the
"required=" logic for the last question to say if all of the other
questions are blank, then this question is required. That will prevent the
user from going forward until at least one question is answered.

only 1 question in a group can be answered--
In theory, you should be able to do put a constraint on the current
question based on a previous answer. Something like:
(constraint for
q4 is that the answer to q3 is greater than 5)
but it appears javarosa doesn't support this. it only supports the "."
operator, so constraints can only relate to the current node.
So I don't think this is currently possible.

Hope that helps.
-Carl

On Sun, Jan 29, 2012 at 2:17 PM, Yaw Anokwa yanokwa@gmail.com wrote:

Evelyn,

I think the best you can do is to ask what they know or don't know in
a first prompt, then have the next set of prompts ask for the known
data. There is no way that I know of to apply logic on an entire group
and there is also no way to have prompts in a group dynamically change
while that group is being displayed. Maybe Drew or Clayton know a
clever way around this, but I can't think of one...

Yaw

On Fri, Jan 27, 2012 at 07:43, Evelyn Castle evelyn@ehealthnigeria.org wrote:

Hi Yaw,

To clarify a bit on what Laura was saying, I would like to be able to
have
logic that says:

  • at least 1 question in a group must be answered
  • only 1 question in a group can be answered

Is that logic possible?
Sorry, the birth date question was probably not the best example.

Thanks
Evelyn

On Fri, Jan 27, 2012 at 4:29 PM, Laura Costica < laura.costica@gmail.com> wrote:

Hi Yaw,

Evelyn is building the form for a project I am running. Your
suggestion
doesn't really help us because we are not allowing the enumerator to
choose
how to enter the age. She must enter it in completed years. We have
the same
problem with dates, for example:

What is your date of birth:
day: |||
month: |||
year: |||
don't know

Here they have to enter at least the year of birth or "don't know".

One alternative is to train enumerators to enter -99 if not even the
year
is known, but we were looking for a neater solution where we could
still
keep the "don't know" option, but make it possible for them to
choose one
one or the other without skipping the question.

Thanks,
Laura

On Thu, Jan 26, 2012 at 4:42 PM, Yaw Anokwa yanokwa@gmail.com wrote:

Hi Evelyn,

I think the easiest way to solve the age problem is to start with an
age entry mode that asks if age is being entered by date or age in
years. On that screen, you can also add 'Don't Know'. Then your next
prompt will ask the appropriate question.

See the sample form at http://pastie.org/3257103.

Yaw

On Thu, Jan 26, 2012 at 07:37, Evelyn Castle < evelyn@ehealthnigeria.org> wrote:

Hi All,

I am working on a pretty long and complex form and was hoping to
get
some help with one of my questions.

We have many questions where the participant can either answer the
question or choose "Don't Know" as an option. For example:

  1. How many years old are you? ________
    Don't know

I have put these into a group so that they show up on the same
screen
together.

Now, I need to add logic to make it so the surveyor has to choose
one
or the other, but not both, before they can move onto the next
question.

Any ideas?

Thanks
Evelyn

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

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

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

--
Evelyn Castle
Director, eHealth Nigeria
www.eHealthNigeria.org
25 Race Course Road, Kano, Ng
mobile: (NG) 0809-515-0585
(NG) 0813-883-2395
(US) 714-721-3157

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

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

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

--
Evelyn Castle
Director, eHealth Nigeria
www.eHealthNigeria.org
25 Race Course Road, Kano, Ng
mobile: (NG) 0809-515-0585
(NG) 0813-883-2395
(US) 714-721-3157

--
Evelyn Castle
Director, eHealth Nigeria
www.eHealthNigeria.org
25 Race Course Road, Kano, Ng
mobile: (NG) 0809-515-0585
(NG) 0813-883-2395
(US) 714-721-3157

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