How to use auto number in ODK

Dear all, I want to create variable as auto number in ODK.
It is unique number. Like record 1 is 1, record 2 is 2 ... record n is n.

Best,
Lihol

Hi Lihol,

One reasonable way of doing this is to use repeats to wrap your
record. Then add a calculate variable with position(..) to track the
number of repeat you are on.

The above only works if all the records are in the same form. There is
no reasonable way to auto-increment numbers across forms in ODK
Collect. Your best bet is to use timestamps, but note that these are
based on device time which can be very wrong. If you just need to
uniquely identify forms, then use the instance ID

Yaw

ยทยทยท -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Wed, Aug 26, 2015 at 11:17 PM, sroulihol@gmail.com wrote:

Dear all, I want to create variable as auto number in ODK.
It is unique number. Like record 1 is 1, record 2 is 2 ... record n is n.

Best,
Lihol

--

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.

Hi all,

I want to have a variable in my form which auto-increments based on no. of forms submitted in that project and returns last value. Is there any way I can do the same.
Thanks in advance for your help.

~~ Padmaja.

Try the ODK Counter app.

1 Like