Relevence for Skip

Hello,
I am new to ODK. I have been trying to use the relevance feature in the
advance tab.
Attached is a sample.
I want the Name question to be asked only if the person is above 18 years
of age.
How can it be achived.
The present expression I have put in the relevance tab does not seem to
please aggregate.
I always get an error while uploading the form to aggregate.

Would appreciate any help.

Thank you.
-Ram

Test.xml (2 KB)

Not sure how you are generating the form.

The XML file syntax is different from the XLS syntax.

In the XML file, the proper bind would be:

In the XLS file, you would specify ${age} = "y"

When we process the XLS file, we look for ${...} and expand it
appropriately. The substitutions required for values to exapnd into text
labels and for formulas are different, so having the one unified ${...}
syntax in XLS simplifies the form design process.

Mitch

··· On Sun, May 12, 2013 at 9:37 PM, Sriram Ramachandran wrote:

Hello,
I am new to ODK. I have been trying to use the relevance feature in the
advance tab.
Attached is a sample.
I want the Name question to be asked only if the person is above 18 years
of age.
How can it be achived.
The present expression I have put in the relevance tab does not seem to
please aggregate.
I always get an error while uploading the form to aggregate.

Would appreciate any help.

Thank you.
-Ram

--

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

Oops -- looks like there is an extra close paren in the bind that I missed.

  <bind nodeset="/data/name" type="string" relevant="/data/age =

"y"" jr:constraintMsg="jr:itext('/data/name:constraintMsg')"/>

··· On Mon, May 13, 2013 at 8:51 AM, Mitch Sundt wrote:

Not sure how you are generating the form.

The XML file syntax is different from the XLS syntax.

In the XML file, the proper bind would be:

In the XLS file, you would specify ${age} = "y"

When we process the XLS file, we look for ${...} and expand it
appropriately. The substitutions required for values to exapnd into text
labels and for formulas are different, so having the one unified ${...}
syntax in XLS simplifies the form design process.

Mitch

On Sun, May 12, 2013 at 9:37 PM, Sriram Ramachandran ramsam80@gmail.comwrote:

Hello,
I am new to ODK. I have been trying to use the relevance feature in the
advance tab.
Attached is a sample.
I want the Name question to be asked only if the person is above 18 years
of age.
How can it be achived.
The present expression I have put in the relevance tab does not seem to
please aggregate.
I always get an error while uploading the form to aggregate.

Would appreciate any help.

Thank you.
-Ram

--

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

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

Ram,

Looks like you are using ODK Build. Try using the full path when you
use the ${} syntax. ${/data/age} should work. If it doesn't then there
is a bug.

has examples.

Yaw

··· -- Need ODK help? Go to http://nafundi.com for custom features, form design, implementation support, and user training for ODK.

On Mon, May 13, 2013 at 8:52 AM, Mitch Sundt mitchellsundt@gmail.com wrote:

Oops -- looks like there is an extra close paren in the bind that I missed.

  <bind nodeset="/data/name" type="string" relevant="/data/age =

"y"" jr:constraintMsg="jr:itext('/data/name:constraintMsg')"/>

On Mon, May 13, 2013 at 8:51 AM, Mitch Sundt mitchellsundt@gmail.com wrote:

Not sure how you are generating the form.

The XML file syntax is different from the XLS syntax.

In the XML file, the proper bind would be:

In the XLS file, you would specify ${age} = "y"

When we process the XLS file, we look for ${...} and expand it
appropriately. The substitutions required for values to exapnd into text
labels and for formulas are different, so having the one unified ${...}
syntax in XLS simplifies the form design process.

Mitch

On Sun, May 12, 2013 at 9:37 PM, Sriram Ramachandran ramsam80@gmail.com wrote:

Hello,
I am new to ODK. I have been trying to use the relevance feature in the
advance tab.
Attached is a sample.
I want the Name question to be asked only if the person is above 18 years
of age.
How can it be achived.
The present expression I have put in the relevance tab does not seem to
please aggregate.
I always get an error while uploading the form to aggregate.

Would appreciate any help.

Thank you.
-Ram

--

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

--
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.