Implement routing based on a count

Hi Guys,

I'm new to ODK but am amazed with how powerful it is, well done to the guys who developed it!

We have a request to develop a form that has 2 sets of questions, short set and long set. Every 5th person should be asked the long set and then the others get asked the short set.
Does anyone have any ideas how to implement this type routing within one form?

I understand that it could be implemented with 2 separate forms and the interviewer would have to manually decide when to open the long form, however, the survey designer feels this is not an option. The survey will be carried out in a very busy place with only a limited period to ask the questions and they want to routing to be automatic to speed up the process and so that the interviewer won't have to try and remember which form to open.

I can do simple routing based on the answer to a previous question but I can't think of any way to implement routing based on a count.

Any help/advice would be really appreciated.

Regards,

Tom

Questions about the use of the tools and the design of forms should be sent
to the opendatakit@ list.

Moving this thread over to that list....

The opendatakit-developers@ list is for people downloading and modifying
the source code of the applications.

See attached survey. It generates a random number, converts it to one of
five values (0,1,2,3,4) and then uses a group with a relevant condition of
(random_value = 1) to ask detailed questions only 20% of the time, on
average.

short_long_example.xls (21.5 KB)

ยทยทยท On Fri, Oct 17, 2014 at 1:43 AM, wrote:

Hi Guys,

I'm new to ODK but am amazed with how powerful it is, well done to the
guys who developed it!

We have a request to develop a form that has 2 sets of questions, short
set and long set. Every 5th person should be asked the long set and then
the others get asked the short set.
Does anyone have any ideas how to implement this type routing within one
form?

I understand that it could be implemented with 2 separate forms and the
interviewer would have to manually decide when to open the long form,
however, the survey designer feels this is not an option. The survey will
be carried out in a very busy place with only a limited period to ask the
questions and they want to routing to be automatic to speed up the process
and so that the interviewer won't have to try and remember which form to
open.

I can do simple routing based on the answer to a previous question but I
can't think of any way to implement routing based on a count.

Any help/advice would be really appreciated.

Regards,

Tom

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

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