Constraining a response to a previous answer

Hi All

I ahve a set of questions that I need some help with, the first question
ask for an age, the next one then asks to verify the age using a drop down
box.

I need to be able to constrain the response to verify that the respondent
has selected the same age as he stated in the fisrt question.

I have used the following:
constraint=". = number('$age')"

The age choices:
list name name label age 16 16 age 17 17 age 18 18 age 19 19 age 20
20 age 21 21 age 22 22 age 23 23 age 24 24 age 25 25 age 26 26 age 27
27 age 28 28 age 29 29 age 30 30 age 31 31 age 32 32 age 33 33 age 34
34 age 35 35 age 36 36 age 37 37 age 38 38 age 39 39 age 40 40 age 41
41 age 42 42 age 43 43 age 44 44 age 45 45 age 46 46 age 47 47 age 48
48 age 49 49 age 50 50 age 51 51 age 52 52 age 53 53 age 54 54 age 55
55 age 56 56 age 57 57 age 58 58 age 59 59 age 60 60 age 61 61 age 62
62 age 63 63 age 64 64 age 65 65

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

What was your problem / question?

··· On Mon, Jan 13, 2014 at 1:30 AM, Bashir Jahed wrote:

Hi All

I ahve a set of questions that I need some help with, the first question
ask for an age, the next one then asks to verify the age using a drop down
box.

I need to be able to constrain the response to verify that the respondent
has selected the same age as he stated in the fisrt question.

I have used the following:
constraint=". = number('$age')"

The age choices:
list name name label age 16 16 age 17 17 age 18 18 age 19 19 age
20 20 age 21 21 age 22 22 age 23 23 age 24 24 age 25 25 age 26 26
age 27 27 age 28 28 age 29 29 age 30 30 age 31 31 age 32 32 age 33
33 age 34 34 age 35 35 age 36 36 age 37 37 age 38 38 age 39 39 age
40 40 age 41 41 age 42 42 age 43 43 age 44 44 age 45 45 age 46 46
age 47 47 age 48 48 age 49 49 age 50 50 age 51 51 age 52 52 age 53
53 age 54 54 age 55 55 age 56 56 age 57 57 age 58 58 age 59 59 age
60 60 age 61 61 age 62 62 age 63 63 age 64 64 age 65 65

--
Bashir Jahed - Director
The OSi LAB (PTY) Ltd
www.osilab.net | 083 414 0453 | bashir@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/groups/opt_out.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Hi Mitch

I want to be able to verify a respondents age by first askin them and
inserting it as an integer then the respondent is asked for his age at a
later stage again using a drop down list.

I want to be able to verify that the age entered as an integer and the age
selected from the drop down is the same, if not then it must be corrected
before continuing.

The method is used in the previous email does not work, no matter what is
entered even if correct doen not allow the survey to continue

Thanks
Bash

··· On Tuesday, January 14, 2014, Mitch Sundt wrote:

What was your problem / question?

On Mon, Jan 13, 2014 at 1:30 AM, Bashir Jahed <admin@osilab.net<javascript:_e({}, 'cvml', 'admin@osilab.net');> wrote:

Hi All

I ahve a set of questions that I need some help with, the first question
ask for an age, the next one then asks to verify the age using a drop down
box.

I need to be able to constrain the response to verify that the respondent
has selected the same age as he stated in the fisrt question.

I have used the following:
constraint=". = number('$age')"

The age choices:
list name name label age 16 16 age 17 17 age 18 18 age 19 19 age
20 20 age 21 21 age 22 22 age 23 23 age 24 24 age 25 25 age 26 26
age 27 27 age 28 28 age 29 29 age 30 30 age 31 31 age 32 32 age 33
33 age 34 34 age 35 35 age 36 36 age 37 37 age 38 38 age 39 39 age
40 40 age 41 41 age 42 42 age 43 43 age 44 44 age 45 45 age 46 46
age 47 47 age 48 48 age 49 49 age 50 50 age 51 51 age 52 52 age 53
53 age 54 54 age 55 55 age 56 56 age 57 57 age 58 58 age 59 59 age
60 60 age 61 61 age 62 62 age 63 63 age 64 64 age 65 65

--
Bashir Jahed - Director
The OSi LAB (PTY) Ltd
www.osilab.net | 083 414 0453 | bashir@osilab.net <javascript:_e({},
'cvml', 'bashir@osilab.net');>

--

Post: opendatakit@googlegroups.com <javascript:_e({}, 'cvml',
'opendatakit@googlegroups.com');>
Unsubscribe: opendatakit+unsubscribe@googlegroups.com <javascript:_e({},
'cvml', 'opendatakit%2Bunsubscribe@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 <javascript:_e({},
'cvml', 'opendatakit%2Bunsubscribe@googlegroups.com');>.
For more options, visit https://groups.google.com/groups/opt_out.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com <javascript:_e({}, 'cvml',
'mitchellsundt@gmail.com');>

--

Post: opendatakit@googlegroups.com <javascript:_e({}, 'cvml',
'opendatakit@googlegroups.com');>
Unsubscribe: opendatakit+unsubscribe@googlegroups.com <javascript:_e({},
'cvml', 'opendatakit%2Bunsubscribe@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 <javascript:_e({},
'cvml', 'opendatakit%2Bunsubscribe@googlegroups.com');>.
For more options, visit https://groups.google.com/groups/opt_out.

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

Hi Bashir,

Use constraint=". = ${age}"

Mofya

··· From: opendatakit@googlegroups.com [mailto:opendatakit@googlegroups.com] On Behalf Of Bashir Jahed Sent: 15 January 2014 08:25 AM To: opendatakit@googlegroups.com Subject: [ODK Community] Re: Constraining a response to a previous answer

Hi Mitch

I want to be able to verify a respondents age by first askin them and
inserting it as an integer then the respondent is asked for his age at a
later stage again using a drop down list.

I want to be able to verify that the age entered as an integer and the age
selected from the drop down is the same, if not then it must be corrected
before continuing.

The method is used in the previous email does not work, no matter what is
entered even if correct doen not allow the survey to continue

Thanks

Bash

On Tuesday, January 14, 2014, Mitch Sundt wrote:

What was your problem / question?

On Mon, Jan 13, 2014 at 1:30 AM, Bashir Jahed <admin@osilab.net <javascript:_e(%7b%7d,%20'cvml',%20'admin@osilab.net');> > wrote:

Hi All

I ahve a set of questions that I need some help with, the first question ask
for an age, the next one then asks to verify the age using a drop down box.

I need to be able to constrain the response to verify that the respondent
has selected the same age as he stated in the fisrt question.

I have used the following:

constraint=". = number('$age')"

The age choices:

list name

name

label

age

16

16

age

17

17

age

18

18

age

19

19

age

20

20

age

21

21

age

22

22

age

23

23

age

24

24

age

25

25

age

26

26

age

27

27

age

28

28

age

29

29

age

30

30

age

31

31

age

32

32

age

33

33

age

34

34

age

35

35

age

36

36

age

37

37

age

38

38

age

39

39

age

40

40

age

41

41

age

42

42

age

43

43

age

44

44

age

45

45

age

46

46

age

47

47

age

48

48

age

49

49

age

50

50

age

51

51

age

52

52

age

53

53

age

54

54

age

55

55

age

56

56

age

57

57

age

58

58

age

59

59

age

60

60

age

61

61

age

62

62

age

63

63

age

64

64

age

65

65

--

Bashir Jahed - Director

The OSi LAB (PTY) Ltd

www.osilab.net | 083 414 0453 | bashir@osilab.net
<javascript:_e(%7b%7d,%20'cvml',%20'bashir@osilab.net');>

http://www.radarmob.com/images/logo.png

--

Post: opendatakit@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'opendatakit@googlegroups.com');>
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'opendatakit%2Bunsubscribe@googlegroups.c
om');>
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
<javascript:_e(%7b%7d,%20'cvml',%20'opendatakit%2Bunsubscribe@googlegroups.c
om');> .
For more options, visit https://groups.google.com/groups/opt_out.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com
<javascript:_e(%7b%7d,%20'cvml',%20'mitchellsundt@gmail.com');>

--

Post: opendatakit@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'opendatakit@googlegroups.com');>
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'opendatakit%2Bunsubscribe@googlegroups.c
om');>
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
<javascript:_e(%7b%7d,%20'cvml',%20'opendatakit%2Bunsubscribe@googlegroups.c
om');> .
For more options, visit https://groups.google.com/groups/opt_out.

--

Bashir Jahed - Director

The OSi LAB (PTY) Ltd

www.osilab.net | 083 414 0453 | bashir@osilab.net

http://www.radarmob.com/images/logo.png

--

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/groups/opt_out.

Thanks Mofya

This worked great

Bash

··· On Wed, Jan 15, 2014 at 10:36 AM, Mofya Phiri wrote:

Hi Bashir,

Use constraint=”. = ${age}”

Mofya

From: opendatakit@googlegroups.com [mailto:opendatakit@googlegroups.com]
*On Behalf Of *Bashir Jahed
Sent: 15 January 2014 08:25 AM
To: opendatakit@googlegroups.com
Subject: [ODK Community] Re: Constraining a response to a previous
answer

Hi Mitch

I want to be able to verify a respondents age by first askin them and
inserting it as an integer then the respondent is asked for his age at a
later stage again using a drop down list.

I want to be able to verify that the age entered as an integer and the age
selected from the drop down is the same, if not then it must be corrected
before continuing.

The method is used in the previous email does not work, no matter what is
entered even if correct doen not allow the survey to continue

Thanks

Bash

On Tuesday, January 14, 2014, Mitch Sundt wrote:

What was your problem / question?

On Mon, Jan 13, 2014 at 1:30 AM, Bashir Jahed admin@osilab.net wrote:

Hi All

I ahve a set of questions that I need some help with, the first question
ask for an age, the next one then asks to verify the age using a drop down
box.

I need to be able to constrain the response to verify that the respondent
has selected the same age as he stated in the fisrt question.

I have used the following:

constraint=". = number('$age')"

The age choices:

list name

name

label

age

16

16

age

17

17

age

18

18

age

19

19

age

20

20

age

21

21

age

22

22

age

23

23

age

24

24

age

25

25

age

26

26

age

27

27

age

28

28

age

29

29

age

30

30

age

31

31

age

32

32

age

33

33

age

34

34

age

35

35

age

36

36

age

37

37

age

38

38

age

39

39

age

40

40

age

41

41

age

42

42

age

43

43

age

44

44

age

45

45

age

46

46

age

47

47

age

48

48

age

49

49

age

50

50

age

51

51

age

52

52

age

53

53

age

54

54

age

55

55

age

56

56

age

57

57

age

58

58

age

59

59

age

60

60

age

61

61

age

62

62

age

63

63

age

64

64

age

65

65

--

Bashir Jahed - Director

The OSi LAB (PTY) Ltd

www.osilab.net | 083 414 0453 | bashir@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/groups/opt_out.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

--

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/groups/opt_out.

--

Bashir Jahed - Director

The OSi LAB (PTY) Ltd

www.osilab.net | 083 414 0453 | bashir@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/groups/opt_out.

--

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/groups/opt_out.

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