Display a question when another question tally is a multiple of 5

HI,

I have a question (well rather a label) that I want to display in a form
when a counter in another form is a multiple of 5. How do i write out a
display condition for this?

Kindly,
Ameera

Hi Ameera,

Let’s say your counter is in Form 1 and the label you want to conditionally
display is in Form 2.

You’ll need to load the counter from Form 1 into Form 2 using Case
Management
https://confluence.dimagi.com/display/commcarepublic/[Learning+Module]+Case+Management
.

Once you have saved the counter as a case property in Form 1, and loaded it
into a hidden value called, for example, /data/form1_counter, in Form 2,
you can then have a display condition such as the following on the label
you want: /data/form1_counter mod 5 = 0. You can find details about the
mod function here
https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions#CommCareFunctions-mod
.

Hope this helps,
Kriti

··· On Tue, Jul 5, 2016 at 1:33 PM, Ameera Hamid wrote:

HI,

I have a question (well rather a label) that I want to display in a form
when a counter in another form is a multiple of 5. How do i write out a
display condition for this?

Kindly,
Ameera


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.