anupmishra20 / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 0 forks source link

Feature request: select-multiple with fixed number of selections #772

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Support a "choose 2 answers from the following list"
style select-multiples

Might also consider select between m and n values from the following list.

Original issue reported on code.google.com by mitchellsundt@gmail.com on 25 Feb 2013 at 6:30

GoogleCodeExporter commented 9 years ago

This could perhaps be added as an additional attribute on the <bind> tag. 

e.g., 
<bind ... minCount="2" maxCount="6">

If the number of values fall outside that range, a constraint violation would 
be reported.

It could be done as a hack at the Collect layer, but would be better done 
within javarosa.  I think the validation logic doesn't have access to the 
values list, hence why this would appear as a bind attribute.

Original comment by mitchellsundt@gmail.com on 25 Feb 2013 at 6:38