Help with ODK

Hello,

I have been playing around with ODK using several different form builders and there is something I would like to do and am unsure how, and was hoping one of you could help me out.

Ill try describe as best I can..

Basically I to create a drop down menu with a list of objects, from where I can select whatever objects apply (varying quantity). The selected objects would then be added to a list, wherein a numerical value (percentage in this case) can be added to each individual item.

Then, if possible, have a condition which calculates the sum of all values and provides an error message if it is >100.

Thanks in advance for any advice.

I'd do this in XLSForm.

Have the objects in a multi select (ob1, ob2, ob3, etc) prompt. Then
for each object, have a corresponding number prompt (e.g., ob1_num)
become relevant if it was selected (e.g., selected(${ob_list}, 'ob1')
)

Then add up all ob_num prompts to find the sum, and have a constraint
that they have to add up to 100. Instead of the constraint, you could
also have a third prompt that is required and relevant if the sum is
not 100.

Yaw

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

On Thu, Aug 14, 2014 at 6:31 AM, rhyscallender@gmail.com wrote:

Hello,

I have been playing around with ODK using several different form builders and there is something I would like to do and am unsure how, and was hoping one of you could help me out.

Ill try describe as best I can..

Basically I to create a drop down menu with a list of objects, from where I can select whatever objects apply (varying quantity). The selected objects would then be added to a list, wherein a numerical value (percentage in this case) can be added to each individual item.

Then, if possible, have a condition which calculates the sum of all values and provides an error message if it is >100.

Thanks in advance for any advice.

--

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.