Including the number of repeat in a label

Hi,

It seems pretty basic but i cannot find a way to do it. In a begin repeat
(in XLS) I would like to include in which repeat the enumerator is. Hence I
would like to say "What is first name of your child number ${number}? with
${number} the number of repeat.

Don't know if this is clear

Thanks anyway

Hi Adrien,

position(..) will give you the number of the repeat. Store the value
in a node (e.g., repeat_count) with a calculate and then print it with
${repeat_count}.

You can find more at https://opendatakit.org/help/form-design/binding.

Yaw

ยทยทยท -- Need ODK consultants? Nafundi provides form design, server setup, in-field training, and software development for ODK. Go to https://nafundi.com to get started.

On Sun, Jan 17, 2016 at 11:23 AM, Bouguen Adrien adbouguen@gmail.com wrote:

Hi,

It seems pretty basic but i cannot find a way to do it. In a begin repeat
(in XLS) I would like to include in which repeat the enumerator is. Hence I
would like to say "What is first name of your child number ${number}? with
${number} the number of repeat.

Don't know if this is clear

Thanks anyway

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.