Select_multiple constraint

Hi All

I am trying to constrain a select multiple option by preventing a user from
being able to select one choice if any of the other choices have been
selected.

Example:
I have options:
A
B
C
D
E

user must be able to select A,B,C,D or any combination of the above,
however if a user selects E, they must not be able to select A,B,C or D

Thanks

··· -- Bashir Jahed - Director The OSi LAB (PTY) Ltd www.osilab.net | 083 414 0453 | bashir@osilab.net

Hi Bashir,

I havent had time to test this but you can try something like this in the
validation:

*if(selected(.,'E'), count-selected(.)=1, count-selected(.) >=1)*Cheers,

··· On Wednesday, 27 July 2016 12:15:41 UTC+2, Bashir Jahed wrote: > > Hi All > > I am trying to constrain a select multiple option by preventing a user > from being able to select one choice if any of the other choices have been > selected. > > Example: > I have options: > A > B > C > D > E > > user must be able to select A,B,C,D or any combination of the above, > however if a user selects E, they must not be able to select A,B,C or D > > Thanks > > -- > Bashir Jahed - Director > The OSi LAB (PTY) Ltd > www.osilab.net | 083 414 0453 | bas...@osilab.net > > >

Awesome Sam

Thanks a stack, that worked like a charm

Bash

··· On Thu, Jul 28, 2016 at 7:09 AM, Sam Phiri wrote:

Hi Bashir,

I havent had time to test this but you can try something like this in the
validation:

*if(selected(.,'E'), count-selected(.)=1, count-selected(.) >=1)*Cheers,

On Wednesday, 27 July 2016 12:15:41 UTC+2, Bashir Jahed wrote:

Hi All

I am trying to constrain a select multiple option by preventing a user
from being able to select one choice if any of the other choices have been
selected.

Example:
I have options:
A
B
C
D
E

user must be able to select A,B,C,D or any combination of the above,
however if a user selects E, they must not be able to select A,B,C or D

Thanks

--
Bashir Jahed - Director
The OSi LAB (PTY) Ltd
www.osilab.net | 083 414 0453 | bas...@osilab.net

--

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.

--
Bashir Jahed - Director
The OSi LAB (PTY) Ltd
www.osilab.net | 083 414 0453 | bashir@osilab.net