Validation in Question List

Hello all,

I am currently trying to make 1 of 2 questions required in a question list.
That is, the respondent must either enter a number in the integer-type
question or select and answer in the checkbox question. I have been using
the instructions found here:
https://confluence.dimagi.com/display/commcarepublic/Make+a+subset+of+questions+required,
but I am not sure of how to indicate a blank response to the integer
question. What would the logic for that look like?

Thank you,
Leah

Hi Leah,

The easiest way to accomplish this workflow is generally to put a “label"
question into the question list with the Validation Condition “false()” and
a display condition that is the “failure” condition that you are
describing. This will make something pop onto the screen if the user’s
input is invalid and won’t let them proceed until correcting the input, but
won’t make you jump through hoops to use validation condition on the
individual questions. Specifically on a text or numeric input question the
"Validation” only applies when the question hasn’t been answered.

-Clayton

··· On Tue, Jan 10, 2017 at 2:10 AM, wrote:

Hello all,

I am currently trying to make 1 of 2 questions required in a question
list. That is, the respondent must either enter a number in the
integer-type question or select and answer in the checkbox question. I have
been using the instructions found here: https://confluence.dimagi.com/
display/commcarepublic/Make+a+subset+of+questions+required, but I am not
sure of how to indicate a blank response to the integer question. What
would the logic for that look like?

Thank you,
Leah


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.