ODK Survey 2.0 and 'relevant' - is there a way to skip questions?

Hi,

I have been working with ODK 2.0 a little bit now as I really need the
ability to have the map view on the collection device.

Can anyone point me to the right column and language to use so that a
question will be skipped if the prior question is left blank? In 1.0 I
believe I could have used the relevant column with something like this:
not(selected(${xxx},'')), where xxx is the name of the prior question. This
does not seem to work in 2.0.

Thank you,
Che

You will need to add a clause column and a condition column. Also, add a
row before the question that you want to skip where you set the clause to
"if" and the condition to whatever is appropriate (i. e. data('xxx') !==
null && data('xxx') !== undefined). Another row with the respective "end
if" in the clause column will have to be added after the question that may
be skipped. More information and examples are available at
https://opendatakit.org/use/2_0_tools/odk-application-designer-2-0-rev126/odk-xlsxconverter-2-0-rev126/#puttingItAllTogether.
The attached Excel file has a simple example of how to do this. If the
data that you need to check is from a select_multiple question, then I
would use the countSelected() function. More information about this
function can be found at
https://opendatakit.org/use/2_0_tools/odk-application-designer-2-0-rev126/odk-xlsxconverter-2-0-rev126/#built_inFunctionality
.

Clarice

exampleForm.xlsx (10.7 KB)

ยทยทยท On Wed, Dec 2, 2015 at 12:46 PM, Che Geiser wrote:

Hi,

I have been working with ODK 2.0 a little bit now as I really need the
ability to have the map view on the collection device.

Can anyone point me to the right column and language to use so that a
question will be skipped if the prior question is left blank? In 1.0 I
believe I could have used the relevant column with something like this:
not(selected(${xxx},'')), where xxx is the name of the prior question. This
does not seem to work in 2.0.

Thank you,
Che

--

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.

Thanks for the tips and links Clarice! That worked!