Can I have Validation Condition on Hidden Value

​Hello,
I need to sum up both Male and Female audience who attended a Community
Durbar. Any of these variables (i.e. MaleAudience and FemaleAudience) could
be zero BUT not BOTH, thus the TotalAudience MUST BE >= 1.

For example, MaleAudience = 45, FemaleAudience = 0 or vice versa.

My issue now is how do I make sure that they are not both zeros such that
the TotalAudience is NOT Set to Zero (0).

Yaw

Yaw,

Hidden values cannot have validation conditions. What you’d usually do in
this situation is have the display condition on one of the two questions
(usually the one that comes second).

Cheers,
Will

··· On Wed, Aug 9, 2017 at 7:24 AM, YAW ANTWI-ADJEI wrote:

​Hello,
I need to sum up both Male and Female audience who attended a Community
Durbar. Any of these variables (i.e. MaleAudience and FemaleAudience) could
be zero BUT not BOTH, thus the TotalAudience MUST BE >= 1.

For example, MaleAudience = 45, FemaleAudience = 0 or vice versa.

My issue now is how do I make sure that they are not both zeros such that
the TotalAudience is NOT Set to Zero (0).

Yaw


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.

Hi Will,
Great. I got it to work using the following Condition based on your
suggestion.
if(#form/ALLCDsGroup/InCDsGroup/AudienceGroup/MaleAudience = 0, . >= 1, .

= 0)

Thank you very much
Yaw​

··· On 9 August 2017 at 11:41, William Pride wrote:

Yaw,

Hidden values cannot have validation conditions. What you’d usually do in
this situation is have the display condition on one of the two questions
(usually the one that comes second).

Cheers,
Will

On Wed, Aug 9, 2017 at 7:24 AM, YAW ANTWI-ADJEI yawantwiadjei@gmail.com wrote:

​Hello,
I need to sum up both Male and Female audience who attended a Community
Durbar. Any of these variables (i.e. MaleAudience and FemaleAudience) could
be zero BUT not BOTH, thus the TotalAudience MUST BE >= 1.

For example, MaleAudience = 45, FemaleAudience = 0 or vice versa.

My issue now is how do I make sure that they are not both zeros such that
the TotalAudience is NOT Set to Zero (0).

Yaw


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.


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.