in a situation where the first question asks for symptoms and options are
fever and no fever,
the the second question requires an input for temperature, where if if the
patient had fever temp should be say 100 to 109 inclusive and when patient
did not have fever temp should be 96 to 101.
How do I write the validation code for that. I cant seam to figure out a
way to do this. I am actually one 4 days old in using commcare.
For the Temperature (with fever) question you can write this in the
Validation Condition field: . >= 100 and . <=109
and for Temperature (no fever) question write: . >= 96 and . <=101
···
On Fri, Mar 11, 2016 at 5:44 PM, Mark Onimbo wrote:
in a situation where the first question asks for symptoms and options are
fever and no fever,
the the second question requires an input for temperature, where if if the
patient had fever temp should be say 100 to 109 inclusive and when patient
did not have fever temp should be 96 to 101.
How do I write the validation code for that. I cant seam to figure out a
way to do this. I am actually one 4 days old in using commcare.
Similarly When I do this, I am unable to figure out why my decimal type
question won't allow me to input values. If i leave the field blank in the
preview the question has the check. Otherwise it Shows a X.
···
On Friday, March 11, 2016 at 9:44:31 AM UTC-6, Mark Onimbo wrote:
>
> in a situation where the first question asks for symptoms and options are
> fever and no fever,
> the the second question requires an input for temperature, where if if the
> patient had fever temp should be say 100 to 109 inclusive and when patient
> did not have fever temp should be 96 to 101.
>
> How do I write the validation code for that. I cant seam to figure out a
> way to do this. I am actually one 4 days old in using commcare.
>