Answer current question must be one of the answer of previous question

Dear all...

could you please help me? I have a questionnaires

  1. water source (multiple answer: well, rain water, piped)
  2. main drinking (one answer)...the choice must be one of the answer from
    question 1.

How to make constrain if I choose well and rain water at question 1, so i
could not pick piped in question 2? is it possible to display massage at
question 2 if i pick option which is not selected at question 1?

thanks million

Hi,

To do exactly what you are requesting you can add a constraint to question
2 along the lines of:

selected(${q1}, .)

Thats a dot as the second parameter of the selected function. The first
parameter is the name of question 1 surrounded by ${...}.

The attached example shows another approach, using choice filters, where
you the only choices shown in question 2 are those that were selected in
question 1.

regards

Neil

top_three.xls (42.5 KB)

ยทยทยท On Fri, Jan 20, 2017 at 2:11 PM, Agung wrote:

Dear all...

could you please help me? I have a questionnaires

  1. water source (multiple answer: well, rain water, piped)
  2. main drinking (one answer)...the choice must be one of the answer from
    question 1.

How to make constrain if I choose well and rain water at question 1, so i
could not pick piped in question 2? is it possible to display massage at
question 2 if i pick option which is not selected at question 1?

thanks million

--

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.

--

Smap Consulting http://smap.com.au/| Mobile Data Collection Solutions
Application Developer - neilpenman@gmail.com minqiang.huang@gmail.com
Twitter: @dgmsot
Skype: ianaf4you
Phone: +61 402 975 959
Website: http://smap.com.au http://smap.com.au/blog