Selected Item

Please can someone advise if it is possible to determine if a select one item is selected or not. I have seen several examples of checking if a particular value is selected, but no way of checking if something is simply selected or not.

Thanks

You want a *require *constraint of TRUE -- this requires that the user
answer the question and not leave it blank.

Without it being required, you cannot ensure that the question is ever
answered.
If any field is not answered (left blank), the constraint on that field
will not be evaluated.

See http://opendatakit.org/help/form-design/binding/ for the list of
available functions.

Once it is required to have a value, you can count the number of choices
that were selected (e.g., for a multi-select) via:

count-selected(${mymultichoice})

··· On Tue, Nov 12, 2013 at 11:35 PM, DamLin wrote:

Please can someone advise if it is possible to determine if a select one
item is selected or not. I have seen several examples of checking if a
particular value is selected, but no way of checking if something is simply
selected or not.

Thanks

--

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

Is there anyway to feedback to the individual which question is not completed, rather than just the standard message?

Hi Mitch,

You want a *require *constraint of TRUE -- this requires that the user
answer the question and not leave it blank.

Without it being required, you cannot ensure that the question is ever
answered.
If any field is not answered (left blank), the constraint on that field
will not be evaluated.

See http://opendatakit.org/help/form-design/binding/ for the list of
available functions.

Once it is required to have a value, you can count the number of choices
that were selected (e.g., for a multi-select) via:

count-selected(${mymultichoice})

is it possible to use the count-selected function on yes or no question? My
use scenario is a calculation of yes on the PHQ9 and determining the cut
off based on the number of yes's

Thanks and Regards
Ronald Munjoma

··· On 13 November 2013 19:05, Mitch Sundt wrote:

On Tue, Nov 12, 2013 at 11:35 PM, DamLin DamianLindley@aol.com wrote:

Please can someone advise if it is possible to determine if a select one
item is selected or not. I have seen several examples of checking if a
particular value is selected, but no way of checking if something is simply
selected or not.

Thanks

--

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.

Ronald,

count-selected() only works on a single multi-choice prompt.

If you wish to count how many yes values you have across your form,
use something like this on the node you want the value stored in.

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, professional support, custom reporting, and software development for ODK.

On Sat, Nov 16, 2013 at 5:27 AM, ronald munjoma simbiso@gmail.com wrote:

Hi Mitch,

On 13 November 2013 19:05, Mitch Sundt mitchellsundt@gmail.com wrote:

You want a require constraint of TRUE -- this requires that the user
answer the question and not leave it blank.

Without it being required, you cannot ensure that the question is ever
answered.
If any field is not answered (left blank), the constraint on that field
will not be evaluated.

See http://opendatakit.org/help/form-design/binding/ for the list of
available functions.

Once it is required to have a value, you can count the number of choices
that were selected (e.g., for a multi-select) via:

count-selected(${mymultichoice})

is it possible to use the count-selected function on yes or no question? My
use scenario is a calculation of yes on the PHQ9 and determining the cut off
based on the number of yes's

Thanks and Regards
Ronald Munjoma

On Tue, Nov 12, 2013 at 11:35 PM, DamLin DamianLindley@aol.com wrote:

Please can someone advise if it is possible to determine if a select one
item is selected or not. I have seen several examples of checking if a
particular value is selected, but no way of checking if something is simply
selected or not.

Thanks

--

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.

--

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.