If statement

Hi all
I have an eligibility assessment form, in here I have around 6 variables
that are yes_no. in the 7th variable (elig_asses) I want a constraint where
someone ticks yes(1)
only if in all above 6 variables he ticked yes.(other wise if in any of the
6 he ticked no then in this 6th varibale he should tick no) I use Xls and
any help will
be much appreciated

select_one yes_no age Is the woman aged >=15 and <=19 years

select_one yes_no confirmed Has the woman been confirmed to be currently
pregnant?

select_one yes_no willing Is the woman willing and able to undergo clinical
evaluations, come back to the clinic for follow-up exams and counseing, and
adhere to the follow-up visit schedule? select_one yes_no provided Has the
woman provided independent, written, informed consent to participate in the
study?

select_one yes_no locator Has the woman provided locator information and
agreed to be visited at home by the study Health Visitor/Designee? select_one
yes_no no_condition According to the site leader or designee the client has
no condition that would preclude provision of informed consent, make
participation in the study unsafe, complicate interpretation of study
outcome data, or otherwise interfere with achieving the study objectives? end
group

select_one eligb elig_asses FINAL ELIGIBILITY ASSESSMENT

Thanks

The available functions are described here:
https://opendatakit.org/help/form-design/binding/

Note that you don't need to have the data collector determine this
eligibility setting -- you can have the form do that.

i.e., make 'elig_asses' a calculated field 'yes_value' if all 6 are
'yes_value' (whatever value you use for the "Yes" choice).

string elig_asses if(selected(${age},'yes_value') and
selected(${confirmed},'yes_value') ... , 'yes_value', 'no_value')

You can then have a group immediately after this calculated field that is
relevant only if elig_assses is 'yes_value'.

And place the rest of your survey inside that group.

ยทยทยท On Thu, Nov 5, 2015 at 6:46 AM, Ayoub Kakande wrote:

Hi all
I have an eligibility assessment form, in here I have around 6 variables
that are yes_no. in the 7th variable (elig_asses) I want a constraint where
someone ticks yes(1)
only if in all above 6 variables he ticked yes.(other wise if in any of
the 6 he ticked no then in this 6th varibale he should tick no) I use Xls
and any help will
be much appreciated

select_one yes_no age Is the woman aged >=15 and <=19 years

select_one yes_no confirmed Has the woman been confirmed to be currently
pregnant?

select_one yes_no willing Is the woman willing and able to undergo
clinical evaluations, come back to the clinic for follow-up exams and
counseing, and adhere to the follow-up visit schedule? select_one yes_no
provided Has the woman provided independent, written, informed consent to
participate in the study?

select_one yes_no locator Has the woman provided locator information and
agreed to be visited at home by the study Health Visitor/Designee? select_one
yes_no no_condition According to the site leader or designee the client
has no condition that would preclude provision of informed consent, make
participation in the study unsafe, complicate interpretation of study
outcome data, or otherwise interfere with achieving the study objectives? end
group

select_one eligb elig_asses FINAL ELIGIBILITY ASSESSMENT

Thanks

--

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