# Validation in Question List

**URL:** <https://forum.dimagi.com/t/validation-in-question-list/3177>\
**Category:** Users\
**Created:** [January 10, 2017, 7:10am UTC](https://forum.dimagi.com/t/validation-in-question-list/3177 "2017-01-10T07:10:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leb013](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/l/71c47a/32.png) [@Leb013](https://forum.dimagi.com/u/Leb013)\
**Post date:** [January 10, 2017, 7:10am UTC](https://forum.dimagi.com/t/validation-in-question-list/3177/1 "2017-01-10T07:10:17Z")

</div>

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:  
[Make a subset of questions required - CommCare Public - CommCare Public](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

---

<div class="post-metadata">

**Author:** ![Clayton\_Sims](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/clayton_sims/32/496_2.png) [@Clayton\_Sims](https://forum.dimagi.com/u/Clayton_Sims)\
**Post date:** [January 10, 2017, 6:31pm UTC](https://forum.dimagi.com/t/validation-in-question-list/3177/2 "2017-01-10T18:31:00Z")

</div>

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/](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](mailto:commcare-users+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
