Randomly display question

Hi all,

I'm working on a value chain survey in Mongolia. Here's my question:

Is it possible to randomly display one of a choice of two questions in order to determine willingness to sell animals based on fiber prices. I would like 50 percent of survey respondents to answer this question "Would you be less likely to sell a goat if the price of cashmere increased?" and 50 percent to answer "Would you be more likely to sell a goat if the price of cashmere decreased?"

Is this possible, and how do I do it?

Thanks

This is hard to do. The current ODK Collect does have a random() function
to generate a random number (
http://opendatakit.org/help/form-design/binding/ ), but every time you
edit a form, a new random number is generated
.

You might be able to use the date from the start property (
http://opendatakit.org/help/form-design/examples/#preload_params ) or a
value computed from the deviceid property to ask one question on , e.g.,
even days, the other on odd, or by device.

Unfortunately, the time of day is not easily accessible via ODK Collect at
this point.

··· On Wed, Jul 3, 2013 at 1:45 AM, wrote:

Hi all,

I'm working on a value chain survey in Mongolia. Here's my question:

Is it possible to randomly display one of a choice of two questions in
order to determine willingness to sell animals based on fiber prices. I
would like 50 percent of survey respondents to answer this question "Would
you be less likely to sell a goat if the price of cashmere increased?" and
50 percent to answer "Would you be more likely to sell a goat if the price
of cashmere decreased?"

Is this possible, and how do I do it?

Thanks

--

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/groups/opt_out.

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

Were you able to achieve it?

··· On Wednesday, July 3, 2013 2:15:00 PM UTC+5:30, John Grams wrote: > > Hi all, > > I'm working on a value chain survey in Mongolia. Here's my question: > > Is it possible to randomly display one of a choice of two questions in > order to determine willingness to sell animals based on fiber prices. I > would like 50 percent of survey respondents to answer this question "Would > you be less likely to sell a goat if the price of cashmere increased?" and > 50 percent to answer "Would you be more likely to sell a goat if the price > of cashmere decreased?" > > Is this possible, and how do I do it? > > Thanks > >

Thanks, I'll try that start date idea.

-John Grams

··· On Wednesday, July 3, 2013 10:30:51 AM UTC-7, Mitch Sundt wrote: > > This is hard to do. The current ODK Collect does have a random() function > to generate a random number ( > http://opendatakit.org/help/form-design/binding/ ), but *every time you > edit a form, a new random number is generated*. > > You might be able to use the date from the start property ( > http://opendatakit.org/help/form-design/examples/#preload_params ) or a > value computed from the deviceid property to ask one question on , e.g., > even days, the other on odd, or by device. > > Unfortunately, the time of day is not easily accessible via ODK Collect at > this point. > > > On Wed, Jul 3, 2013 at 1:45 AM, <jeg...@gmail.com > wrote: > >> Hi all, >> >> I'm working on a value chain survey in Mongolia. Here's my question: >> >> Is it possible to randomly display one of a choice of two questions in >> order to determine willingness to sell animals based on fiber prices. I >> would like 50 percent of survey respondents to answer this question "Would >> you be less likely to sell a goat if the price of cashmere increased?" and >> 50 percent to answer "Would you be more likely to sell a goat if the price >> of cashmere decreased?" >> >> Is this possible, and how do I do it? >> >> Thanks >> >> -- >> -- >> Post: opend...@googlegroups.com >> Unsubscribe: opendatakit...@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...@googlegroups.com . >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

Hi John,

There is a patch to JavaROSA (the underlying library that ODK Collect
uses) that will make random() easier to work with. I expect that fix
will be in the next release of Collect.

Yaw

··· -- Need ODK help? Go to http://nafundi.com for custom features, form design, implementation support, and user training for ODK.

On Fri, Jul 5, 2013 at 2:03 AM, John Grams jegrams@gmail.com wrote:

Thanks, I'll try that start date idea.

-John Grams

On Wednesday, July 3, 2013 10:30:51 AM UTC-7, Mitch Sundt wrote:

This is hard to do. The current ODK Collect does have a random() function
to generate a random number (
http://opendatakit.org/help/form-design/binding/ ), but every time you edit
a form, a new random number is generated.

You might be able to use the date from the start property (
http://opendatakit.org/help/form-design/examples/#preload_params ) or a
value computed from the deviceid property to ask one question on , e.g.,
even days, the other on odd, or by device.

Unfortunately, the time of day is not easily accessible via ODK Collect at
this point.

On Wed, Jul 3, 2013 at 1:45 AM, jeg...@gmail.com wrote:

Hi all,

I'm working on a value chain survey in Mongolia. Here's my question:

Is it possible to randomly display one of a choice of two questions in
order to determine willingness to sell animals based on fiber prices. I
would like 50 percent of survey respondents to answer this question "Would
you be less likely to sell a goat if the price of cashmere increased?" and
50 percent to answer "Would you be more likely to sell a goat if the price
of cashmere decreased?"

Is this possible, and how do I do it?

Thanks

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@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...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

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

--

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/groups/opt_out.