Constrain number of years attended in each school level

Hi? I need help to constrain a select_one question with the following
choices Primary, O-Level, A-level, University. The question that follows
asks the number of years attended at each level.
I would like a constrain that constrains max. number of years for primary
school to 7 years, O-Level to 4 years, A-level to 2 years, University to 4
years.

Any ideas?

Louis...

Louis,

You'd have to do something like this on the constraint for years...

if(${level}='primary',.<='7',if(${level}='olevel',.<='4',if(${level}='alevel',.<='2',if(${level}='university',.<='4',''))))

I've attached a sample form.

Yaw

level_years.xlsx (30.8 KB)

ยทยทยท -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Sat, Jul 18, 2015 at 9:18 AM, Louis Omoya louisomoya@gmail.com wrote:

Hi? I need help to constrain a select_one question with the following
choices Primary, O-Level, A-level, University. The question that follows
asks the number of years attended at each level.
I would like a constrain that constrains max. number of years for primary
school to 7 years, O-Level to 4 years, A-level to 2 years, University to 4
years.

Any ideas?

Louis...

--

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.