Display conditions query - display if field is empty

Hi,

I’m very new to using Commcare and would like to know how I can display a
field only if a preceding field is blank?

Thanks in advance,

Adam

Hi Adam. Let’s assume that the preceding field you are talking about has a
question ID of “my_first_question”. Then you would want to enter in the
display condition of the next question:

/data/my_first_question = ‘’

Empty quotes indicates a blank field in CommCare, so here we are checking
whether the question value is equal to a blank value.

Since I’m sure you will come across many questions like this as you start
to use CommCare, I would suggest reading through this page and some of the
resources linked from it:
https://confluence.dimagi.com/display/commcarepublic/Common+Logic+and+Calculations.
In particular, the sections on display conditions, validation conditions,
and calculation conditions will be a very good introduction to all of the
capabilities that CommCare’s form builder provides.

Cheers,
Aliza

··· On Mon, Mar 20, 2017 at 10:06 AM, Adam Devall wrote:

Hi,

I’m very new to using Commcare and would like to know how I can display a
field only if a preceding field is blank?

Thanks in advance,

Adam


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.