If statement

Hello
am designing a form in excel
I have a select question where a user can select more 1, 2 or 3 options,
however the last option is none and I want users to select none only if
they have not selected any other option.
e.g select fruits you eat

  1. mangoes
  2. passion
  3. java
  4. None

how can i add a constraint that if one selects none he can't select any
other option
Thanx

Hello Ayoub,

You don't have to use the if statement . All you have to do is to:

  1. Make sure that the type of the question is select_multiple
  2. Put ,On constraint column, this not(selected(., '4') and
    count-selected(.) >=2)
  3. display on the constraint message " you can't associate "none" with
    an another option

Pierre

··· 2015-06-03 7:49 GMT-04:00 Ayoub Kakande :

Hello
am designing a form in excel
I have a select question where a user can select more 1, 2 or 3 options,
however the last option is none and I want users to select none only if
they have not selected any other option.
e.g select fruits you eat

  1. mangoes
  2. passion
  3. java
  4. None

how can i add a constraint that if one selects none he can't select any
other option
Thanx

--

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.

Thanx so much Pierre, you just saved my day
thou have replaced "this not" with ".!="

··· On 3 June 2015 at 16:38, Pierre Anthony Garraud wrote:

Hello Ayoub,

You don't have to use the if statement . All you have to do is to:

  1. Make sure that the type of the question is select_multiple
  2. Put ,On constraint column, this not(selected(., '4') and
    count-selected(.) >=2)
  3. display on the constraint message " you can't associate "none"
    with an another option

Pierre

2015-06-03 7:49 GMT-04:00 Ayoub Kakande akakande@gmail.com:

Hello
am designing a form in excel
I have a select question where a user can select more 1, 2 or 3 options,
however the last option is none and I want users to select none only if
they have not selected any other option.
e.g select fruits you eat

  1. mangoes
  2. passion
  3. java
  4. None

how can i add a constraint that if one selects none he can't select any
other option
Thanx

--

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.

--

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.

--
**In sun set years education is not associated with standard of living and
medical care access; it is the the financial myosin and actin!!!

**** Don't give me fish, teach me how to fish

Kayoub K
0772656158 / 0703516660
PMTCT Data Manager
Mujhu Research Collaboration
Mulago Hosp

Lecturer
Kumi University