Labels for repeated groups

Hi, Ive just started out with Commcare and hoping someone can point me to
where I can find out how to label a repeated group. I want to ask a series
of questions about a patient's previous pregnancies. I've created a
repeated group but I want to label it so that the mobile worker knows
whether these questions are about the 4th or 5th pregnancy. I found
something on position function using calculate condition of a hidden value
but was wondering if there was something a bit more detailed? thanks

Hi Nicola,

Please see the documentation here
https://confluence.dimagi.com/display/commcarepublic/Using+Repeat+Groups+in+the+Form+Builder

··· - in particular you can use the position() function in a label inside the repeat group to say "Please add the data for the *nth* pregnancy"

Cheers,
Will

On Mon, Mar 6, 2017 at 4:20 PM, nicola@opfistula.org wrote:

Hi, Ive just started out with Commcare and hoping someone can point me to
where I can find out how to label a repeated group. I want to ask a series
of questions about a patient's previous pregnancies. I've created a
repeated group but I want to label it so that the mobile worker knows
whether these questions are about the 4th or 5th pregnancy. I found
something on position function using calculate condition of a hidden value
but was wondering if there was something a bit more detailed? 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. I read that article but Im not sure which box I put that in. Do I
put another label inside the repeated group or does it go somewhere else? I
really appreciate your help! thanks

Nicola Floyd
Head of Impact and Analysis

Operation Fistula
www.opfistula.org

USA UK
401 Congress Avenue 10 Queen Street Place
Suite 1540 London
Austin, TX 78701 EC4R 1BE

··· On Mon, Mar 6, 2017 at 2:36 PM, William Pride wrote:

Hi Nicola,

Please see the documentation here
https://confluence.dimagi.com/display/commcarepublic/Using+Repeat+Groups+in+the+Form+Builder -
in particular you can use the position() function in a label inside the
repeat group to say "Please add the data for the nth pregnancy"

Cheers,
Will

On Mon, Mar 6, 2017 at 4:20 PM, nicola@opfistula.org wrote:

Hi, Ive just started out with Commcare and hoping someone can point me to
where I can find out how to label a repeated group. I want to ask a series
of questions about a patient's previous pregnancies. I've created a
repeated group but I want to label it so that the mobile worker knows
whether these questions are about the 4th or 5th pregnancy. I found
something on position function using calculate condition of a hidden value
but was wondering if there was something a bit more detailed? 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.

--
You received this message because you are subscribed to a topic in the
Google Groups "commcare-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/commcare-users/-5TT37UJ6ho/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yes, adding a label with that in an output value
https://confluence.dimagi.com/display/commcarepublic/Hidden+Values+Tutorial+Part+4%3A+Displaying+an+Output
would
work fine.

Cheers,
Will

··· On Mon, Mar 6, 2017 at 4:41 PM, Nicola Floyd wrote:

thanks. I read that article but Im not sure which box I put that in. Do I
put another label inside the repeated group or does it go somewhere else? I
really appreciate your help! thanks

Nicola Floyd
Head of Impact and Analysis

Operation Fistula
www.opfistula.org

USA UK
401 Congress Avenue 10 Queen Street Place
Suite 1540 London
Austin, TX 78701 EC4R 1BE

On Mon, Mar 6, 2017 at 2:36 PM, William Pride wpride@dimagi.com wrote:

Hi Nicola,

Please see the documentation here
https://confluence.dimagi.com/display/commcarepublic/Using+Repeat+Groups+in+the+Form+Builder -
in particular you can use the position() function in a label inside the
repeat group to say "Please add the data for the nth pregnancy"

Cheers,
Will

On Mon, Mar 6, 2017 at 4:20 PM, nicola@opfistula.org wrote:

Hi, Ive just started out with Commcare and hoping someone can point me
to where I can find out how to label a repeated group. I want to ask a
series of questions about a patient's previous pregnancies. I've created a
repeated group but I want to label it so that the mobile worker knows
whether these questions are about the 4th or 5th pregnancy. I found
something on position function using calculate condition of a hidden value
but was wondering if there was something a bit more detailed? 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.

--
You received this message because you are subscribed to a topic in the
Google Groups "commcare-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/to
pic/commcare-users/-5TT37UJ6ho/unsubscribe.
To unsubscribe from this group and all its topics, 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.

thanks but I dont need a hidden value calculation. I ask the surgeon in the
previous question how many pregnancies he would like to capture details
for. That question ID is no_of_pregnancies_captured. I've tried putting
this in the label box

Please enter the details for the < no_of_pregnanices_captured
*="position(..)+1"
/> pregnancy. *

But it doesnt work. Sorry!

Nicola Floyd
Head of Impact and Analysis

Operation Fistula
www.opfistula.org

USA UK
401 Congress Avenue 10 Queen Street Place
Suite 1540 London
Austin, TX 78701 EC4R 1BE

··· On Mon, Mar 6, 2017 at 2:50 PM, William Pride wrote:

Yes, adding a label with that in an output value
https://confluence.dimagi.com/display/commcarepublic/Hidden+Values+Tutorial+Part+4%3A+Displaying+an+Output would
work fine.

Cheers,
Will

On Mon, Mar 6, 2017 at 4:41 PM, Nicola Floyd nicola@opfistula.org wrote:

thanks. I read that article but Im not sure which box I put that in. Do I
put another label inside the repeated group or does it go somewhere else? I
really appreciate your help! thanks

Nicola Floyd
Head of Impact and Analysis

Operation Fistula
www.opfistula.org

USA UK
401 Congress Avenue 10 Queen Street Place
Suite 1540 London
Austin, TX 78701 EC4R 1BE

On Mon, Mar 6, 2017 at 2:36 PM, William Pride wpride@dimagi.com wrote:

Hi Nicola,

Please see the documentation here
https://confluence.dimagi.com/display/commcarepublic/Using+Repeat+Groups+in+the+Form+Builder -
in particular you can use the position() function in a label inside the
repeat group to say "Please add the data for the nth pregnancy"

Cheers,
Will

On Mon, Mar 6, 2017 at 4:20 PM, nicola@opfistula.org wrote:

Hi, Ive just started out with Commcare and hoping someone can point me
to where I can find out how to label a repeated group. I want to ask a
series of questions about a patient's previous pregnancies. I've created a
repeated group but I want to label it so that the mobile worker knows
whether these questions are about the 4th or 5th pregnancy. I found
something on position function using calculate condition of a hidden value
but was wondering if there was something a bit more detailed? 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.

--
You received this message because you are subscribed to a topic in the
Google Groups "commcare-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/to
pic/commcare-users/-5TT37UJ6ho/unsubscribe.
To unsubscribe from this group and all its topics, 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.

--
You received this message because you are subscribed to a topic in the
Google Groups "commcare-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/commcare-users/-5TT37UJ6ho/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

An output value as linked above is different from a hidden value - it is
the syntax used to display some value in a label. As the documentation
mentions the syntax is so in your case you would want:

Please enter the details for the < output value="position(..)+1" />
pregnancy.

Cheers,
Will

··· On Mon, Mar 6, 2017 at 5:12 PM, Nicola Floyd wrote:

thanks but I dont need a hidden value calculation. I ask the surgeon in
the previous question how many pregnancies he would like to capture details
for. That question ID is no_of_pregnancies_captured. I've tried putting
this in the label box

Please enter the details for the < no_of_pregnanices_captured *="position(..)+1"
/> pregnancy. *

But it doesnt work. Sorry!

Nicola Floyd
Head of Impact and Analysis

Operation Fistula
www.opfistula.org

USA UK
401 Congress Avenue 10 Queen Street Place
Suite 1540 London
Austin, TX 78701 EC4R 1BE

On Mon, Mar 6, 2017 at 2:50 PM, William Pride wpride@dimagi.com wrote:

Yes, adding a label with that in an output value
https://confluence.dimagi.com/display/commcarepublic/Hidden+Values+Tutorial+Part+4%3A+Displaying+an+Output would
work fine.

Cheers,
Will

On Mon, Mar 6, 2017 at 4:41 PM, Nicola Floyd nicola@opfistula.org wrote:

thanks. I read that article but Im not sure which box I put that in. Do
I put another label inside the repeated group or does it go somewhere else?
I really appreciate your help! thanks

Nicola Floyd
Head of Impact and Analysis

Operation Fistula
www.opfistula.org

USA UK
401 Congress Avenue 10 Queen Street Place
Suite 1540 London
Austin, TX 78701 EC4R 1BE

On Mon, Mar 6, 2017 at 2:36 PM, William Pride wpride@dimagi.com wrote:

Hi Nicola,

Please see the documentation here
https://confluence.dimagi.com/display/commcarepublic/Using+Repeat+Groups+in+the+Form+Builder -
in particular you can use the position() function in a label inside the
repeat group to say "Please add the data for the nth pregnancy"

Cheers,
Will

On Mon, Mar 6, 2017 at 4:20 PM, nicola@opfistula.org wrote:

Hi, Ive just started out with Commcare and hoping someone can point me
to where I can find out how to label a repeated group. I want to ask a
series of questions about a patient's previous pregnancies. I've created a
repeated group but I want to label it so that the mobile worker knows
whether these questions are about the 4th or 5th pregnancy. I found
something on position function using calculate condition of a hidden value
but was wondering if there was something a bit more detailed? 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.

--
You received this message because you are subscribed to a topic in the
Google Groups "commcare-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/to
pic/commcare-users/-5TT37UJ6ho/unsubscribe.
To unsubscribe from this group and all its topics, 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.

--
You received this message because you are subscribed to a topic in the
Google Groups "commcare-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/to
pic/commcare-users/-5TT37UJ6ho/unsubscribe.
To unsubscribe from this group and all its topics, 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.

Im really sorry but I still cant make this work. Ive created an x - a
hidden value which is linked to the answer of the question "how many
pregnancies do you want to enter details for?" and then below it I have a
label
Please enter the details for the < show_pregnancy_number ="position(..)+1"/>
pregnancy.

The show pregnancy label is the link to the x hidden value.

When I go to the app preview it doesn't work at all.

Sorry, thanks nicola

Nicola Floyd
Head of Impact and Analysis

Operation Fistula
www.opfistula.org

USA UK
401 Congress Avenue 10 Queen Street Place
Suite 1540 London
Austin, TX 78701 EC4R 1BE

··· On Mon, Mar 6, 2017 at 3:17 PM, William Pride wrote:

An output value as linked above is different from a hidden value - it is
the syntax used to display some value in a label. As the documentation
mentions the syntax is so in your case you would want:

Please enter the details for the < output value="position(..)+1" />
pregnancy.

Cheers,
Will

On Mon, Mar 6, 2017 at 5:12 PM, Nicola Floyd nicola@opfistula.org wrote:

thanks but I dont need a hidden value calculation. I ask the surgeon in
the previous question how many pregnancies he would like to capture details
for. That question ID is no_of_pregnancies_captured. I've tried putting
this in the label box

Please enter the details for the < no_of_pregnanices_captured *="position(..)+1"
/> pregnancy. *

But it doesnt work. Sorry!

Nicola Floyd
Head of Impact and Analysis

Operation Fistula
www.opfistula.org

USA UK
401 Congress Avenue 10 Queen Street Place
Suite 1540 London
Austin, TX 78701 EC4R 1BE

On Mon, Mar 6, 2017 at 2:50 PM, William Pride wpride@dimagi.com wrote:

Yes, adding a label with that in an output value
https://confluence.dimagi.com/display/commcarepublic/Hidden+Values+Tutorial+Part+4%3A+Displaying+an+Output would
work fine.

Cheers,
Will

On Mon, Mar 6, 2017 at 4:41 PM, Nicola Floyd nicola@opfistula.org wrote:

thanks. I read that article but Im not sure which box I put that in. Do
I put another label inside the repeated group or does it go somewhere else?
I really appreciate your help! thanks

Nicola Floyd
Head of Impact and Analysis

Operation Fistula
www.opfistula.org

USA UK
401 Congress Avenue 10 Queen Street Place
Suite 1540 London
Austin, TX 78701 EC4R 1BE

On Mon, Mar 6, 2017 at 2:36 PM, William Pride wpride@dimagi.com wrote:

Hi Nicola,

Please see the documentation here
https://confluence.dimagi.com/display/commcarepublic/Using+Repeat+Groups+in+the+Form+Builder -
in particular you can use the position() function in a label inside the
repeat group to say "Please add the data for the nth pregnancy"

Cheers,
Will

On Mon, Mar 6, 2017 at 4:20 PM, nicola@opfistula.org wrote:

Hi, Ive just started out with Commcare and hoping someone can point
me to where I can find out how to label a repeated group. I want to ask a
series of questions about a patient's previous pregnancies. I've created a
repeated group but I want to label it so that the mobile worker knows
whether these questions are about the 4th or 5th pregnancy. I found
something on position function using calculate condition of a hidden value
but was wondering if there was something a bit more detailed? 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.

--
You received this message because you are subscribed to a topic in the
Google Groups "commcare-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/to
pic/commcare-users/-5TT37UJ6ho/unsubscribe.
To unsubscribe from this group and all its topics, 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.

--
You received this message because you are subscribed to a topic in the
Google Groups "commcare-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/to
pic/commcare-users/-5TT37UJ6ho/unsubscribe.
To unsubscribe from this group and all its topics, 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.

--
You received this message because you are subscribed to a topic in the
Google Groups "commcare-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/commcare-users/-5TT37UJ6ho/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ive got this now! thanks for your help!

Nicola Floyd
Head of Impact and Analysis

Operation Fistula
www.opfistula.org

USA UK
401 Congress Avenue 10 Queen Street Place
Suite 1540 London
Austin, TX 78701 EC4R 1BE

··· On Mon, Mar 6, 2017 at 3:17 PM, William Pride wrote:

An output value as linked above is different from a hidden value - it is
the syntax used to display some value in a label. As the documentation
mentions the syntax is so in your case you would want:

Please enter the details for the < output value="position(..)+1" />
pregnancy.

Cheers,
Will

On Mon, Mar 6, 2017 at 5:12 PM, Nicola Floyd nicola@opfistula.org wrote:

thanks but I dont need a hidden value calculation. I ask the surgeon in
the previous question how many pregnancies he would like to capture details
for. That question ID is no_of_pregnancies_captured. I've tried putting
this in the label box

Please enter the details for the < no_of_pregnanices_captured *="position(..)+1"
/> pregnancy. *

But it doesnt work. Sorry!

Nicola Floyd
Head of Impact and Analysis

Operation Fistula
www.opfistula.org

USA UK
401 Congress Avenue 10 Queen Street Place
Suite 1540 London
Austin, TX 78701 EC4R 1BE

On Mon, Mar 6, 2017 at 2:50 PM, William Pride wpride@dimagi.com wrote:

Yes, adding a label with that in an output value
https://confluence.dimagi.com/display/commcarepublic/Hidden+Values+Tutorial+Part+4%3A+Displaying+an+Output would
work fine.

Cheers,
Will

On Mon, Mar 6, 2017 at 4:41 PM, Nicola Floyd nicola@opfistula.org wrote:

thanks. I read that article but Im not sure which box I put that in. Do
I put another label inside the repeated group or does it go somewhere else?
I really appreciate your help! thanks

Nicola Floyd
Head of Impact and Analysis

Operation Fistula
www.opfistula.org

USA UK
401 Congress Avenue 10 Queen Street Place
Suite 1540 London
Austin, TX 78701 EC4R 1BE

On Mon, Mar 6, 2017 at 2:36 PM, William Pride wpride@dimagi.com wrote:

Hi Nicola,

Please see the documentation here
https://confluence.dimagi.com/display/commcarepublic/Using+Repeat+Groups+in+the+Form+Builder -
in particular you can use the position() function in a label inside the
repeat group to say "Please add the data for the nth pregnancy"

Cheers,
Will

On Mon, Mar 6, 2017 at 4:20 PM, nicola@opfistula.org wrote:

Hi, Ive just started out with Commcare and hoping someone can point
me to where I can find out how to label a repeated group. I want to ask a
series of questions about a patient's previous pregnancies. I've created a
repeated group but I want to label it so that the mobile worker knows
whether these questions are about the 4th or 5th pregnancy. I found
something on position function using calculate condition of a hidden value
but was wondering if there was something a bit more detailed? 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.

--
You received this message because you are subscribed to a topic in the
Google Groups "commcare-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/to
pic/commcare-users/-5TT37UJ6ho/unsubscribe.
To unsubscribe from this group and all its topics, 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.

--
You received this message because you are subscribed to a topic in the
Google Groups "commcare-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/to
pic/commcare-users/-5TT37UJ6ho/unsubscribe.
To unsubscribe from this group and all its topics, 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.

--
You received this message because you are subscribed to a topic in the
Google Groups "commcare-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/commcare-users/-5TT37UJ6ho/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.