Running mathematical operations on data entered in ODK Collect

Hi,

Is there a way to use the data entered as a response to a question in a form
on ODK Collect to do the following:

Take 3 numbers (e.g. 3 payments) entered as responses to 3 separate
questions and display their sum on a separate page so that the person
filling out the form can verify that this is the sum of payments made (while
still within the form).

Also, is there any way for questions to reference data on the Android device
e.g. names from a list of districts/ villages (I am trying to see if there
is a way to avoid typing in the names of hundreds of villages and instead
restricting the list that shows up based on the answer to previous
questions). I guess one way to do this would be to use conditional
formatting but is there a way to not have to change the form each time I
want to add/subract names from the list of villages.

Thank you,
Ashish

Hi,
Is there a way to use the data entered as a response to a question in a form
on ODK Collect to do the following:
Take 3 numbers (e.g. 3 payments) entered as responses to 3 separate
questions and display their sum on a separate page so that the person
filling out the form can verify that this is the sum of payments made (while
still within the form).

yes. see https://groups.google.com/d/msg/opendatakit/ZZVcLAjoJSg/R9SMGon05ccJ
for an example.

Also, is there any way for questions to reference data on the Android device
e.g. names from a list of districts/ villages (I am trying to see if there
is a way to avoid typing in the names of hundreds of villages and instead
restricting the list that shows up based on the answer to previous
questions). I guess one way to do this would be to use conditional
formatting but is there a way to not have to change the form each time I
want to add/subract names from the list of villages.

https://groups.google.com/d/topic/opendatakit/9C2_dcxRhMA/discussion
has a discussion on this very issue.

https://groups.google.com/forum/#!topic/javarosa-developers/eEAyytjIeS4
has a patch to the core that enables more dynamic item sets, but those
haven't been integrated into collect.

ยทยทยท On Sun, Sep 4, 2011 at 19:59, Ashish Jhina wrote: