Restricting multiple select

My qs is.. there are several choices in multiple select option including "not specified" option . My code should work like if i choose not specified then i can't choose any other option

The sample XLS form at http://opendatakit.org/help/form-design/xlsform/ has
an example of this. It's the "Select multiple 1" question on row 18.

Yaw

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

On Wed, Aug 6, 2014 at 5:50 AM, anyatama@sdrc.co.in wrote:

My qs is.. there are several choices in multiple select option including "not specified" option . My code should work like if i choose not specified then i can't choose any other option

--

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.

thank you

Dear Mitch & Team,

Sorry for posting on this thread.

I have multiple select question, I want to reference the choice from multiple selections and I am aware we use java rosa: jr-choice.
Now my problem is, am only able to return 1 choice. Any advice om how to return multiple choices?
Kind regards.

Collins

··· -----Original Message----- From: "Yaw Anokwa" Sent: ‎8/‎6/‎2014 6:55 PM To: "ODK Community" Subject: Re: [ODK Community] restricting multiple select

The sample XLS form at http://opendatakit.org/help/form-design/xlsform/ has
an example of this. It's the "Select multiple 1" question on row 18.

Yaw

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

On Wed, Aug 6, 2014 at 5:50 AM, anyatama@sdrc.co.in wrote:

My qs is.. there are several choices in multiple select option including "not specified" option . My code should work like if i choose not specified then i can't choose any other option

--

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.

--

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.

You can combine functions:

selected-at(${my_multi_q},0) -- returns the 1st selection in the
multiple-choice
selected-at(${my_multi_q},1) -- returns the 2nd selection in the
multiple-choice
etc.

count-selected(${my_multi_q}) -- returns the number of selections in the
multiple-choice

and combining selected-at with jr:choice-name:

jr:choice-name(selected-at(${my_multi_q},0), '${my_multi_q}' )

returns the display name for the 1st selection in the multiple-choice.

··· On Thu, Nov 13, 2014 at 9:26 AM, Collins Adoyo wrote:

Dear Mitch & Team,

Sorry for posting on this thread.

I have multiple select question, I want to reference the choice from
multiple selections and I am aware we use java rosa: jr-choice.
Now my problem is, am only able to return 1 choice. Any advice om how to
return multiple choices?
Kind regards.

Collins

From: Yaw Anokwa yanokwa@nafundi.com
Sent: ‎8/‎6/‎2014 6:55 PM
To: ODK Community opendatakit@googlegroups.com
Subject: Re: [ODK Community] restricting multiple select

The sample XLS form at http://opendatakit.org/help/form-design/xlsform/
has
an example of this. It's the "Select multiple 1" question on row 18.

Yaw

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

On Wed, Aug 6, 2014 at 5:50 AM, anyatama@sdrc.co.in wrote:

My qs is.. there are several choices in multiple select option including
"not specified" option . My code should work like if i choose not specified
then i can't choose any other option

--

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.

--

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.

--

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.

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

1 Like