Increment variable

Hi,

I need to display an auto incremented value

eg. I am collecting peoples details
I first ask the number of people to be added to the database then in a
repeat ask for name and details.
In that I want to display Name x will be the auto incremented number so
that it will show as Name 1 for 1st person Name 2 for 2nd person etc.

I checked instance name but that can only save the file name.

Thanks in Advance

See https://opendatakit.org/help/form-design/#xpath_expressions

position(..) within a repeat group would give 1, 2, ...

And please consider that groups may be deleted or edited after the first
pass through the form. This may affect your form design.

ยทยทยท On Mon, Jul 25, 2016 at 11:48 AM, Maxbuzz wrote:

Hi,

I need to display an auto incremented value

eg. I am collecting peoples details
I first ask the number of people to be added to the database then in a
repeat ask for name and details.
In that I want to display Name x will be the auto incremented number
so that it will show as Name 1 for 1st person Name 2 for 2nd person etc.

I checked instance name but that can only save the file name.

Thanks in Advance

--

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.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com