Increment counter

Hi,
i have a module with to forms (Registration and follow-up)
The Registration Form have a multiple choice with three value (Yes,No,NA)
i want to count the "YES" value each time the mobile worker choose it and
print it in the case management (in the follow-up from)
Anybody who can tell me how to figure out this issue.
Thanks

Hello,

In order to do this you'll want to read and combine these two help pages:

https://confluence.dimagi.com/display/commcarepublic/User+Case
https://confluence.dimagi.com/display/commcarepublic/Incrementing+a+counter

Cory

··· On Fri, May 20, 2016 at 5:46 AM, Babacar Gueye wrote:

Hi,
i have a module with to forms (Registration and follow-up)
The Registration Form have a multiple choice with three value (Yes,No,NA)
i want to count the "YES" value each time the mobile worker choose it and
print it in the case management (in the follow-up from)
Anybody who can tell me how to figure out this issue.
Thanks

--
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.

Thanks Cory.
Works fine

··· Le dimanche 22 mai 2016 01:41:34 UTC, Cory Zue a écrit : > > Hello, > > In order to do this you'll want to read and combine these two help pages: > > https://confluence.dimagi.com/display/commcarepublic/User+Case > https://confluence.dimagi.com/display/commcarepublic/Incrementing+a+counter > > Cory > > On Fri, May 20, 2016 at 5:46 AM, Babacar Gueye <bcg...@gmail.com > wrote: > >> Hi, >> i have a module with to forms (Registration and follow-up) >> The Registration Form have a multiple choice with three value (Yes,No,NA) >> i want to count the "YES" value each time the mobile worker choose it and >> print it in the case management (in the follow-up from) >> Anybody who can tell me how to figure out this issue. >> Thanks >> >> -- >> 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-user...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > >

Hi Cory, I am trying to follow your steps to increase the number of recipients served by each user. I created user properties to do this, but the count in the form is not working for me. CommCare in the test demo shows Validation error: Problem with bind for /data/count contains invalid calculate expression [(#case/count, 0) + 1] Couldn't understand the expression starting ...

I think you need to replace the #case/count with a reference to the usercase property storing the count. I think you should be able to drag and drop this from the "App properties" box in the bottom left.

1 Like

No, I do not have access to the case properties from the registration form.

Hi Ethan, since I can't access the "App Properties" from the registration form, do you know of another way I can implement this count?

I'm not sure offhand, but if you have access to user cases, you should still be able to get that information. This wiki page has some information on how to go about that.
https://dimagi.atlassian.net/wiki/spaces/commcarepublic/pages/2143955258/User+Case