If Constraint

Good morning ODK Community?

I am working on a form with 3 questions.
Question 1 (Q1) and Question 2 (Q2) have integer fields.

Question 3 (Q3) is a single select (Yes/No).

I want to make Answer for (Q3) to be "Yes" only if the response in Q1 is
equal to the response in Q2. Other wise Q3 will only accept a "No" Response.

In short;
Q3="Yes" if Q1=Q2 otherwise Q3 only accepts a "No" choice.

Thank you advance.

Louis...

constraint:

( selected(${Q3},'Yes') and ${Q1} = ${Q2} ) or ( selected(${Q3},'No') and
${Q1} != ${Q2} )

··· On Thu, Jan 21, 2016 at 2:55 PM, Louis Omoya wrote:

Good morning ODK Community?

I am working on a form with 3 questions.
Question 1 (Q1) and Question 2 (Q2) have integer fields.

Question 3 (Q3) is a single select (Yes/No).

I want to make Answer for (Q3) to be "Yes" only if the response in Q1 is
equal to the response in Q2. Other wise Q3 will only accept a "No" Response.

In short;
Q3="Yes" if Q1=Q2 otherwise Q3 only accepts a "No" choice.

Thank you advance.

Louis...

--

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

Thank you for the quick response.
It works now.
The issue has been resolved.

Many thanks for the technical support provided.

Louis...

··· On 22 Jan 2016 08:25, "Mitch Sundt" wrote:

constraint:

( selected(${Q3},'Yes') and ${Q1} = ${Q2} ) or ( selected(${Q3},'No') and
${Q1} != ${Q2} )

On Thu, Jan 21, 2016 at 2:55 PM, Louis Omoya louisomoya@gmail.com wrote:

Good morning ODK Community?

I am working on a form with 3 questions.
Question 1 (Q1) and Question 2 (Q2) have integer fields.

Question 3 (Q3) is a single select (Yes/No).

I want to make Answer for (Q3) to be "Yes" only if the response in Q1 is
equal to the response in Q2. Other wise Q3 will only accept a "No" Response.

In short;
Q3="Yes" if Q1=Q2 otherwise Q3 only accepts a "No" choice.

Thank you advance.

Louis...

--

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

--

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.