Monthly Archives: September 2017

Range Questions

Questions that ask the user to select from a range of values using a slider have been included in odkCollect and are now also available in fieldTask.

Three range questions in a group

Support for these question types has just been added to Smap Server version 17.08.03 which will be deployed onto hosted servers next Saturday or earlier.

Add a range question to your survey using the online editor. You then have to specify 3 parameters in the parameters property.

  1. start
  2. end
  3. step

Examples:

start=1 end=5 step=1

start=-2.0 end=2.0 step=0.5

If you add a decimal point to any of your parameters then the collected data will also be decimal. Otherwise it will be integer.

The Survey Edit Reference document has been updated to include range.  Range questions are not supported in the xlsForm editor yet.

version 17.08

This release adds support for odk parameters.   Actually currently there is only one parameter supported and that is max-pixels which can be used to reduce the size of photographs taken in a form.

Usage

Open the form in the online editor and select “Parameters” as the property you want to change.  Then find an image you want to reduce.  Then set the max-pixels parameter to the size you want.  For example:

max-pixels=500

The number is the maximum length in pixels of the long edge of the image.

Notes

  1. As well as SmapServer 17.08 you will need fieldTask version 5.06
  2. There is no support in xlsForm for parameters yet hence you will need to enter the parameter in the online editor as described above.
  3. You can consider parameters and appearance as doing very similar things .  In the past appearance was used for many of the capabilities that odk will now be adding using parameters.
  4. Help is available in the reference guide.  https://docs.google.com/file/d/0B5_SmpWlQYxvWlBoWkdiT3FrY1U/edit