Rank options

i have a question where you have to rank your first three conrcens
about a subject. So you have three select one list questions. But my
problem is that i have in the second question to block the selected
option in the first (except selected is "other") and in the third
question i have to block the selected options in the first two
questions, is that posible?
thanks again.

You cannot enable or disable options based on previous answers. You
can however write a constraint to prevent a user from continuing if an
option (or set of options) in a previous question is selected. See
http://opendatakit.org/help/form-design/binding/ for an overview that
should help you write the logic.

··· On Thu, Mar 1, 2012 at 20:48, gap1981 wrote: > i have a question where you have to rank your first three conrcens > about a subject. So you have three select one list questions. But my > problem is that i have in the second question to block the selected > option in the first (except selected is "other") and in the third > question i have to block the selected options in the first two > questions, is that posible? > thanks again. > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en

i asumu you are talking about the "not(selected(/widgets/select1,
'c'))" constraint,
but i didnt know how i make the constraint dynamic.
The other problem is i have a "other" field that doesnt have to meet the
constraint.
thanks
Guillermo A. Perazzo

··· 2012/3/2 Yaw Anokwa

You cannot enable or disable options based on previous answers. You
can however write a constraint to prevent a user from continuing if an
option (or set of options) in a previous question is selected. See
http://opendatakit.org/help/form-design/binding/ for an overview that
should help you write the logic.

On Thu, Mar 1, 2012 at 20:48, gap1981 gaperazzo@gmail.com wrote:

i have a question where you have to rank your first three conrcens
about a subject. So you have three select one list questions. But my
problem is that i have in the second question to block the selected
option in the first (except selected is "other") and in the third
question i have to block the selected options in the first two
questions, is that posible?
thanks again.

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

Hey Guillermo,

I don't know what you mean by dynamic, but let's say question1=c and
question2=d are not a valid combination. You could put a constraint on
question2 like this.

constraint="not(selected(/widgets/question1, 'c') and
selected(/widgets/., 'd'))

Yaw

··· On Fri, Mar 2, 2012 at 02:28, Guillermo Perazzo wrote: > i asumu you are talking about the "not(selected(/widgets/select1, > 'c'))" constraint, but i didnt know how i make the constraint dynamic. > The other problem is i have a "other" field that doesnt have to meet the > constraint. > thanks > Guillermo A. Perazzo > > > > > > > 2012/3/2 Yaw Anokwa >> >> You cannot enable or disable options based on previous answers. You >> can however write a constraint to prevent a user from continuing if an >> option (or set of options) in a previous question is selected. See >> http://opendatakit.org/help/form-design/binding/ for an overview that >> should help you write the logic. >> >> On Thu, Mar 1, 2012 at 20:48, gap1981 wrote: >> > i have a question where you have to rank your first three conrcens >> > about a subject. So you have three select one list questions. But my >> > problem is that i have in the second question to block the selected >> > option in the first (except selected is "other") and in the third >> > question i have to block the selected options in the first two >> > questions, is that posible? >> > thanks again. >> > >> > -- >> > Post: opendatakit@googlegroups.com >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> > Options: http://groups.google.com/group/opendatakit?hl=en >> >> -- >> Post: opendatakit@googlegroups.com >> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en > > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en

i meant if question 1=c question 2 cannot be 'c', and if question 2=d
question 3 cannot be "d".
So the constraint must be changing depending of what you answer on previous
question.
Something like "Answer to question 2 must be defierent to answer to
question 1"
Thans yaw

Guillermo A. Perazzo

··· 2012/3/6 Yaw Anokwa

Hey Guillermo,

I don't know what you mean by dynamic, but let's say question1=c and
question2=d are not a valid combination. You could put a constraint on
question2 like this.

constraint="not(selected(/widgets/question1, 'c') and
selected(/widgets/., 'd'))

Yaw

On Fri, Mar 2, 2012 at 02:28, Guillermo Perazzo gaperazzo@gmail.com wrote:

i asumu you are talking about the "not(selected(/widgets/select1,
'c'))" constraint, but i didnt know how i make the constraint dynamic.
The other problem is i have a "other" field that doesnt have to meet the
constraint.
thanks
Guillermo A. Perazzo

2012/3/2 Yaw Anokwa yanokwa@gmail.com

You cannot enable or disable options based on previous answers. You
can however write a constraint to prevent a user from continuing if an
option (or set of options) in a previous question is selected. See
http://opendatakit.org/help/form-design/binding/ for an overview that
should help you write the logic.

On Thu, Mar 1, 2012 at 20:48, gap1981 gaperazzo@gmail.com wrote:

i have a question where you have to rank your first three conrcens
about a subject. So you have three select one list questions. But my
problem is that i have in the second question to block the selected
option in the first (except selected is "other") and in the third
question i have to block the selected options in the first two
questions, is that posible?
thanks again.

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

I haven't tried this, but, you might be able to convert the select to
a string, then compare. So if the strings are not the same, the prompt
(or the constraint) is shown.

relevant="string(/widgets/question1) != string(/widgets/question2)"

If that doesn't work, then the only other way I can think of is
enumerating all the possibilities. There's probably a better way, but
try the above for now.

··· On Tue, Mar 6, 2012 at 07:21, Guillermo Perazzo wrote: > i meant if question 1=c question 2 cannot be 'c', and if question 2=d > question 3 cannot be "d". > So the constraint must be changing depending of what you answer on previous > question. > Something like "Answer to question 2 must be defierent to answer to question > 1" > Thans yaw > > Guillermo A. Perazzo > > > > > > > 2012/3/6 Yaw Anokwa >> >> Hey Guillermo, >> >> I don't know what you mean by dynamic, but let's say question1=c and >> question2=d are not a valid combination. You could put a constraint on >> question2 like this. >> >> constraint="not(selected(/widgets/question1, 'c') and >> selected(/widgets/., 'd')) >> >> Yaw >> >> On Fri, Mar 2, 2012 at 02:28, Guillermo Perazzo wrote: >> > i asumu you are talking about the "not(selected(/widgets/select1, >> > 'c'))" constraint, but i didnt know how i make the constraint dynamic. >> > The other problem is i have a "other" field that doesnt have to meet the >> > constraint. >> > thanks >> > Guillermo A. Perazzo >> > >> > >> > >> > >> > >> > >> > 2012/3/2 Yaw Anokwa >> >> >> >> You cannot enable or disable options based on previous answers. You >> >> can however write a constraint to prevent a user from continuing if an >> >> option (or set of options) in a previous question is selected. See >> >> http://opendatakit.org/help/form-design/binding/ for an overview that >> >> should help you write the logic. >> >> >> >> On Thu, Mar 1, 2012 at 20:48, gap1981 wrote: >> >> > i have a question where you have to rank your first three conrcens >> >> > about a subject. So you have three select one list questions. But my >> >> > problem is that i have in the second question to block the selected >> >> > option in the first (except selected is "other") and in the third >> >> > question i have to block the selected options in the first two >> >> > questions, is that posible? >> >> > thanks again. >> >> > >> >> > -- >> >> > Post: opendatakit@googlegroups.com >> >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> >> > Options: http://groups.google.com/group/opendatakit?hl=en >> >> >> >> -- >> >> Post: opendatakit@googlegroups.com >> >> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> >> Options: http://groups.google.com/group/opendatakit?hl=en >> > >> > >> > -- >> > Post: opendatakit@googlegroups.com >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> > Options: http://groups.google.com/group/opendatakit?hl=en >> >> -- >> Post: opendatakit@googlegroups.com >> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en > > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en

Dear Yaw,

I have Ranking Questions like below and I want these to be constrained so
that the response to B cant be the response to A and the response to C
cannot be the response to A or B. How can I do this? and Secondly Can i
have all these three questions on one screen?
QA: Priority 1

Healthy-looking pregnant woman.......1 Healthy-looking
woman.....................2 Healthy-looking man..........................3 Sick
man..........................................4 Sick
woman........................................5 Sick pregnant
woman..........................6

QB: Priority 2

Healthy-looking pregnant woman.......1Healthy-looking
woman.....................2Healthy-looking man..........................3Sick
man..........................................4Sick
woman........................................5Sick pregnant
woman..........................6

QC: Priority 3

Healthy-looking pregnant woman.......1Healthy-looking
woman.....................2Healthy-looking man..........................3Sick
man..........................................4Sick
woman........................................5Sick pregnant
woman..........................6

··· On Tuesday, March 6, 2012 at 5:49:46 PM UTC+2, Yaw Anokwa wrote: > > I haven't tried this, but, you might be able to convert the select to > a string, then compare. So if the strings are not the same, the prompt > (or the constraint) is shown. > > relevant="string(/widgets/question1) != string(/widgets/question2)" > > If that doesn't work, then the only other way I can think of is > enumerating all the possibilities. There's probably a better way, but > try the above for now. > > On Tue, Mar 6, 2012 at 07:21, Guillermo Perazzo <gape...@gmail.com > wrote: > > i meant if question 1=c question 2 cannot be 'c', and if question 2=d > > question 3 cannot be "d". > > So the constraint must be changing depending of what you answer on > previous > > question. > > Something like "Answer to question 2 must be defierent to answer to > question > > 1" > > Thans yaw > > > > Guillermo A. Perazzo > > > > > > > > > > > > > > 2012/3/6 Yaw Anokwa <yan...@gmail.com > > >> > >> Hey Guillermo, > >> > >> I don't know what you mean by dynamic, but let's say question1=c and > >> question2=d are not a valid combination. You could put a constraint on > >> question2 like this. > >> > >> constraint="not(selected(/widgets/question1, 'c') and > >> selected(/widgets/., 'd')) > >> > >> Yaw > >> > >> On Fri, Mar 2, 2012 at 02:28, Guillermo Perazzo <gape...@gmail.com > wrote: > >> > i asumu you are talking about the "not(selected(/widgets/select1, > >> > 'c'))" constraint, but i didnt know how i make the constraint dynamic. > >> > The other problem is i have a "other" field that doesnt have to meet > the > >> > constraint. > >> > thanks > >> > Guillermo A. Perazzo > >> > > >> > > >> > > >> > > >> > > >> > > >> > 2012/3/2 Yaw Anokwa <yan...@gmail.com > > >> >> > >> >> You cannot enable or disable options based on previous answers. You > >> >> can however write a constraint to prevent a user from continuing if > an > >> >> option (or set of options) in a previous question is selected. See > >> >> http://opendatakit.org/help/form-design/binding/ for an overview > that > >> >> should help you write the logic. > >> >> > >> >> On Thu, Mar 1, 2012 at 20:48, gap1981 <gape...@gmail.com > wrote: > >> >> > i have a question where you have to rank your first three conrcens > >> >> > about a subject. So you have three select one list questions. But > my > >> >> > problem is that i have in the second question to block the > selected > >> >> > option in the first (except selected is "other") and in the third > >> >> > question i have to block the selected options in the first two > >> >> > questions, is that posible? > >> >> > thanks again. > >> >> > > >> >> > -- > >> >> > Post: opend...@googlegroups.com > >> >> > Unsubscribe: opendatakit...@googlegroups.com > >> >> > Options: http://groups.google.com/group/opendatakit?hl=en > >> >> > >> >> -- > >> >> Post: opend...@googlegroups.com > >> >> Unsubscribe: opendatakit...@googlegroups.com > >> >> Options: http://groups.google.com/group/opendatakit?hl=en > >> > > >> > > >> > -- > >> > Post: opend...@googlegroups.com > >> > Unsubscribe: opendatakit...@googlegroups.com > >> > Options: http://groups.google.com/group/opendatakit?hl=en > >> > >> -- > >> Post: opend...@googlegroups.com > >> Unsubscribe: opendatakit...@googlegroups.com > >> Options: http://groups.google.com/group/opendatakit?hl=en > > > > > > -- > > Post: opend...@googlegroups.com > > Unsubscribe: opendatakit...@googlegroups.com > > Options: http://groups.google.com/group/opendatakit?hl=en > >

Sydney,

Did you try the answers in the thread you responded to? If so, did it work?

Yaw

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

On Mon, Jun 15, 2015 at 3:41 PM, Sydney sydneyrodney@gmail.com wrote:

Dear Yaw,

I have Ranking Questions like below and I want these to be constrained so
that the response to B cant be the response to A and the response to C
cannot be the response to A or B. How can I do this? and Secondly Can i
have all these three questions on one screen?
QA: Priority 1

Healthy-looking pregnant woman.......1 Healthy-looking
woman.....................2 Healthy-looking
man..........................3 Sick
man..........................................4 Sick
woman........................................5 Sick pregnant
woman..........................6

QB: Priority 2

Healthy-looking pregnant woman.......1Healthy-looking
woman.....................2Healthy-looking man..........................3Sick
man..........................................4Sick
woman........................................5Sick pregnant
woman..........................6

QC: Priority 3

Healthy-looking pregnant woman.......1Healthy-looking
woman.....................2Healthy-looking man..........................3Sick
man..........................................4Sick
woman........................................5Sick pregnant
woman..........................6

On Tuesday, March 6, 2012 at 5:49:46 PM UTC+2, Yaw Anokwa wrote:

I haven't tried this, but, you might be able to convert the select to
a string, then compare. So if the strings are not the same, the prompt
(or the constraint) is shown.

relevant="string(/widgets/question1) != string(/widgets/question2)"

If that doesn't work, then the only other way I can think of is
enumerating all the possibilities. There's probably a better way, but
try the above for now.

On Tue, Mar 6, 2012 at 07:21, Guillermo Perazzo gape...@gmail.com wrote:

i meant if question 1=c question 2 cannot be 'c', and if question 2=d
question 3 cannot be "d".
So the constraint must be changing depending of what you answer on
previous
question.
Something like "Answer to question 2 must be defierent to answer to
question
1"
Thans yaw

Guillermo A. Perazzo

2012/3/6 Yaw Anokwa yan...@gmail.com

Hey Guillermo,

I don't know what you mean by dynamic, but let's say question1=c and
question2=d are not a valid combination. You could put a constraint on
question2 like this.

constraint="not(selected(/widgets/question1, 'c') and
selected(/widgets/., 'd'))

Yaw

On Fri, Mar 2, 2012 at 02:28, Guillermo Perazzo gape...@gmail.com wrote:

i asumu you are talking about the "not(selected(/widgets/select1,
'c'))" constraint, but i didnt know how i make the constraint
dynamic.
The other problem is i have a "other" field that doesnt have to meet
the
constraint.
thanks
Guillermo A. Perazzo

2012/3/2 Yaw Anokwa yan...@gmail.com

You cannot enable or disable options based on previous answers. You
can however write a constraint to prevent a user from continuing if
an
option (or set of options) in a previous question is selected. See
http://opendatakit.org/help/form-design/binding/ for an overview
that
should help you write the logic.

On Thu, Mar 1, 2012 at 20:48, gap1981 gape...@gmail.com wrote:

i have a question where you have to rank your first three
conrcens
about a subject. So you have three select one list questions. But
my
problem is that i have in the second question to block the
selected
option in the first (except selected is "other") and in the third
question i have to block the selected options in the first two
questions, is that posible?
thanks again.

--
Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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

Dear Yaw,
It didnt work for me. Would you please please Can you give me a simple
example( using Excel programming template) that i can follow using the
questions i posted.

Please please help

··· On Monday, June 15, 2015 at 11:41:48 PM UTC+2, Sydney wrote: > > Dear Yaw, > > I have Ranking Questions like below and I want these to be constrained so > that the response to B cant be the response to A and the response to C > cannot be the response to A or B. How can I do this? and Secondly Can i > have all these three questions on one screen? > QA: Priority 1 > > Healthy-looking pregnant woman.......1 Healthy-looking > woman.....................2 Healthy-looking > man..........................3 Sick > man..........................................4 Sick > woman........................................5 Sick pregnant > woman..........................6 > > QB: Priority 2 > > Healthy-looking pregnant woman.......1Healthy-looking > woman.....................2Healthy-looking man..........................3Sick > man..........................................4Sick > woman........................................5Sick pregnant > woman..........................6 > > QC: Priority 3 > > Healthy-looking pregnant woman.......1Healthy-looking > woman.....................2Healthy-looking man..........................3Sick > man..........................................4Sick > woman........................................5Sick pregnant > woman..........................6 > > > > > > > > > > > > > > > > > > > On Tuesday, March 6, 2012 at 5:49:46 PM UTC+2, Yaw Anokwa wrote: >> >> I haven't tried this, but, you might be able to convert the select to >> a string, then compare. So if the strings are not the same, the prompt >> (or the constraint) is shown. >> >> relevant="string(/widgets/question1) != string(/widgets/question2)" >> >> If that doesn't work, then the only other way I can think of is >> enumerating all the possibilities. There's probably a better way, but >> try the above for now. >> >> On Tue, Mar 6, 2012 at 07:21, Guillermo Perazzo wrote: >> > i meant if question 1=c question 2 cannot be 'c', and if question 2=d >> > question 3 cannot be "d". >> > So the constraint must be changing depending of what you answer on >> previous >> > question. >> > Something like "Answer to question 2 must be defierent to answer to >> question >> > 1" >> > Thans yaw >> > >> > Guillermo A. Perazzo >> > >> > >> > >> > >> > >> > >> > 2012/3/6 Yaw Anokwa >> >> >> >> Hey Guillermo, >> >> >> >> I don't know what you mean by dynamic, but let's say question1=c and >> >> question2=d are not a valid combination. You could put a constraint on >> >> question2 like this. >> >> >> >> constraint="not(selected(/widgets/question1, 'c') and >> >> selected(/widgets/., 'd')) >> >> >> >> Yaw >> >> >> >> On Fri, Mar 2, 2012 at 02:28, Guillermo Perazzo wrote: >> >> > i asumu you are talking about the "not(selected(/widgets/select1, >> >> > 'c'))" constraint, but i didnt know how i make the constraint >> dynamic. >> >> > The other problem is i have a "other" field that doesnt have to meet >> the >> >> > constraint. >> >> > thanks >> >> > Guillermo A. Perazzo >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > 2012/3/2 Yaw Anokwa >> >> >> >> >> >> You cannot enable or disable options based on previous answers. You >> >> >> can however write a constraint to prevent a user from continuing if >> an >> >> >> option (or set of options) in a previous question is selected. See >> >> >> http://opendatakit.org/help/form-design/binding/ for an overview >> that >> >> >> should help you write the logic. >> >> >> >> >> >> On Thu, Mar 1, 2012 at 20:48, gap1981 wrote: >> >> >> > i have a question where you have to rank your first three >> conrcens >> >> >> > about a subject. So you have three select one list questions. But >> my >> >> >> > problem is that i have in the second question to block the >> selected >> >> >> > option in the first (except selected is "other") and in the third >> >> >> > question i have to block the selected options in the first two >> >> >> > questions, is that posible? >> >> >> > thanks again. >> >> >> > >> >> >> > -- >> >> >> > Post: opend...@googlegroups.com >> >> >> > Unsubscribe: opendatakit...@googlegroups.com >> >> >> > Options: http://groups.google.com/group/opendatakit?hl=en >> >> >> >> >> >> -- >> >> >> Post: opend...@googlegroups.com >> >> >> Unsubscribe: opendatakit...@googlegroups.com >> >> >> Options: http://groups.google.com/group/opendatakit?hl=en >> >> > >> >> > >> >> > -- >> >> > Post: opend...@googlegroups.com >> >> > Unsubscribe: opendatakit...@googlegroups.com >> >> > Options: http://groups.google.com/group/opendatakit?hl=en >> >> >> >> -- >> >> Post: opend...@googlegroups.com >> >> Unsubscribe: opendatakit...@googlegroups.com >> >> Options: http://groups.google.com/group/opendatakit?hl=en >> > >> > >> > -- >> > Post: opend...@googlegroups.com >> > Unsubscribe: opendatakit...@googlegroups.com >> > Options: http://groups.google.com/group/opendatakit?hl=en >> >>

Sydney,

You may want to consider using a choice_filter. I've used this for
select_multiple questions, but it should function in a similar method for
select_one questions.

Example:

Q1: What kinds of training have you received? [Select all that apply]
(with 7 responses from the Q1_list, last being "Other-Specify)

Q2: What other kinds of training would you like to receive? [Select all
that apply] (with same 7 responses from the Q1_list, last being
"Other-Specify)).

The list_name and name would be like the following (label can be actual
training names):
Q1_list 1 Q1_list 2 Q1_list 3 Q1_list 4 Q1_list 5 Q1_list 6 Q1_list
7

The choice_filter column for Q2 would contain: "train_cat !=
selected-at(${Q2}, 0) and train_cat != selected-at(${Q2},1) and train_cat
!= selected-at(${Q2}, 2) and train_cat != selected-at(${Q2}, 3) and
train_cat != selected-at(${Q2}, 4) and train_cat != selected-at(${Q2}, 5)

Note the "Other - Specify" response (7) is not identified in the choice
filter, then it will show up in both questions. Also, the train_cat is the
column name on the choices sheet for the choice_filter (this can be named
anything). If you search choice_filter in this forum you will get further
information to set these style questions. up.

Good luck.

~Lloyd

··· On Monday, June 15, 2015 at 5:45:00 PM UTC-4, Yaw Anokwa wrote: > > Sydney, > > Did you try the answers in the thread you responded to? If so, did it work? > > Yaw > -- > Need ODK services? http://nafundi.com provides form design, server setup, > professional support, and software development for ODK. > > On Mon, Jun 15, 2015 at 3:41 PM, Sydney <sydney...@gmail.com wrote: > >> Dear Yaw, >> >> I have Ranking Questions like below and I want these to be constrained >> so that the response to B cant be the response to A and the response to C >> cannot be the response to A or B. How can I do this? and Secondly Can i >> have all these three questions on one screen? >> QA: Priority 1 >> >> Healthy-looking pregnant woman.......1 Healthy-looking >> woman.....................2 Healthy-looking >> man..........................3 Sick >> man..........................................4 Sick >> woman........................................5 Sick pregnant >> woman..........................6 >> >> QB: Priority 2 >> >> Healthy-looking pregnant woman.......1Healthy-looking >> woman.....................2Healthy-looking man..........................3Sick >> man..........................................4Sick >> woman........................................5Sick pregnant >> woman..........................6 >> >> QC: Priority 3 >> >> Healthy-looking pregnant woman.......1Healthy-looking >> woman.....................2Healthy-looking man..........................3Sick >> man..........................................4Sick >> woman........................................5Sick pregnant >> woman..........................6 >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> On Tuesday, March 6, 2012 at 5:49:46 PM UTC+2, Yaw Anokwa wrote: >>> >>> I haven't tried this, but, you might be able to convert the select to >>> a string, then compare. So if the strings are not the same, the prompt >>> (or the constraint) is shown. >>> >>> relevant="string(/widgets/question1) != string(/widgets/question2)" >>> >>> If that doesn't work, then the only other way I can think of is >>> enumerating all the possibilities. There's probably a better way, but >>> try the above for now. >>> >>> On Tue, Mar 6, 2012 at 07:21, Guillermo Perazzo wrote: >>> > i meant if question 1=c question 2 cannot be 'c', and if question 2=d >>> > question 3 cannot be "d". >>> > So the constraint must be changing depending of what you answer on >>> previous >>> > question. >>> > Something like "Answer to question 2 must be defierent to answer to >>> question >>> > 1" >>> > Thans yaw >>> > >>> > Guillermo A. Perazzo >>> > >>> > >>> > >>> > >>> > >>> > >>> > 2012/3/6 Yaw Anokwa >>> >> >>> >> Hey Guillermo, >>> >> >>> >> I don't know what you mean by dynamic, but let's say question1=c and >>> >> question2=d are not a valid combination. You could put a constraint on >>> >> question2 like this. >>> >> >>> >> constraint="not(selected(/widgets/question1, 'c') and >>> >> selected(/widgets/., 'd')) >>> >> >>> >> Yaw >>> >> >>> >> On Fri, Mar 2, 2012 at 02:28, Guillermo Perazzo wrote: >>> >> > i asumu you are talking about the "not(selected(/widgets/select1, >>> >> > 'c'))" constraint, but i didnt know how i make the constraint >>> dynamic. >>> >> > The other problem is i have a "other" field that doesnt have to >>> meet the >>> >> > constraint. >>> >> > thanks >>> >> > Guillermo A. Perazzo >>> >> > >>> >> > >>> >> > >>> >> > >>> >> > >>> >> > >>> >> > 2012/3/2 Yaw Anokwa >>> >> >> >>> >> >> You cannot enable or disable options based on previous answers. You >>> >> >> can however write a constraint to prevent a user from continuing >>> if an >>> >> >> option (or set of options) in a previous question is selected. See >>> >> >> http://opendatakit.org/help/form-design/binding/ for an overview >>> that >>> >> >> should help you write the logic. >>> >> >> >>> >> >> On Thu, Mar 1, 2012 at 20:48, gap1981 wrote: >>> >> >> > i have a question where you have to rank your first three >>> conrcens >>> >> >> > about a subject. So you have three select one list questions. >>> But my >>> >> >> > problem is that i have in the second question to block the >>> selected >>> >> >> > option in the first (except selected is "other") and in the >>> third >>> >> >> > question i have to block the selected options in the first two >>> >> >> > questions, is that posible? >>> >> >> > thanks again. >>> >> >> > >>> >> >> > -- >>> >> >> > Post: opend...@googlegroups.com >>> >> >> > Unsubscribe: opendatakit...@googlegroups.com >>> >> >> > Options: http://groups.google.com/group/opendatakit?hl=en >>> >> >> >>> >> >> -- >>> >> >> Post: opend...@googlegroups.com >>> >> >> Unsubscribe: opendatakit...@googlegroups.com >>> >> >> Options: http://groups.google.com/group/opendatakit?hl=en >>> >> > >>> >> > >>> >> > -- >>> >> > Post: opend...@googlegroups.com >>> >> > Unsubscribe: opendatakit...@googlegroups.com >>> >> > Options: http://groups.google.com/group/opendatakit?hl=en >>> >> >>> >> -- >>> >> Post: opend...@googlegroups.com >>> >> Unsubscribe: opendatakit...@googlegroups.com >>> >> Options: http://groups.google.com/group/opendatakit?hl=en >>> > >>> > >>> > -- >>> > Post: opend...@googlegroups.com >>> > Unsubscribe: opendatakit...@googlegroups.com >>> > Options: http://groups.google.com/group/opendatakit?hl=en >>> >>> -- >> -- >> Post: opend...@googlegroups.com >> Unsubscribe: opendatakit...@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...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > >

Sydney,

Attached is a ranking example that builds on Lloyd's email.

Yaw

rank.xlsx (11 KB)

··· On Thu, Jun 18, 2015 at 11:08 AM, Sydney wrote:

Dear Yaw,
It didnt work for me. Would you please please Can you give me a simple
example( using Excel programming template) that i can follow using the
questions i posted.

Please please help

On Monday, June 15, 2015 at 11:41:48 PM UTC+2, Sydney wrote:

Dear Yaw,

I have Ranking Questions like below and I want these to be constrained
so that the response to B cant be the response to A and the response to C
cannot be the response to A or B. How can I do this? and Secondly Can i
have all these three questions on one screen?
QA: Priority 1

Healthy-looking pregnant woman.......1 Healthy-looking
woman.....................2 Healthy-looking
man..........................3 Sick
man..........................................4 Sick
woman........................................5 Sick pregnant
woman..........................6

QB: Priority 2

Healthy-looking pregnant woman.......1Healthy-looking
woman.....................2Healthy-looking man..........................3Sick
man..........................................4Sick
woman........................................5Sick pregnant
woman..........................6

QC: Priority 3

Healthy-looking pregnant woman.......1Healthy-looking
woman.....................2Healthy-looking man..........................3Sick
man..........................................4Sick
woman........................................5Sick pregnant
woman..........................6

On Tuesday, March 6, 2012 at 5:49:46 PM UTC+2, Yaw Anokwa wrote:

I haven't tried this, but, you might be able to convert the select to
a string, then compare. So if the strings are not the same, the prompt
(or the constraint) is shown.

relevant="string(/widgets/question1) != string(/widgets/question2)"

If that doesn't work, then the only other way I can think of is
enumerating all the possibilities. There's probably a better way, but
try the above for now.

On Tue, Mar 6, 2012 at 07:21, Guillermo Perazzo gape...@gmail.com wrote:

i meant if question 1=c question 2 cannot be 'c', and if question 2=d
question 3 cannot be "d".
So the constraint must be changing depending of what you answer on
previous
question.
Something like "Answer to question 2 must be defierent to answer to
question
1"
Thans yaw

Guillermo A. Perazzo

2012/3/6 Yaw Anokwa yan...@gmail.com

Hey Guillermo,

I don't know what you mean by dynamic, but let's say question1=c and
question2=d are not a valid combination. You could put a constraint on
question2 like this.

constraint="not(selected(/widgets/question1, 'c') and
selected(/widgets/., 'd'))

Yaw

On Fri, Mar 2, 2012 at 02:28, Guillermo Perazzo gape...@gmail.com wrote:

i asumu you are talking about the "not(selected(/widgets/select1,
'c'))" constraint, but i didnt know how i make the constraint
dynamic.
The other problem is i have a "other" field that doesnt have to
meet the
constraint.
thanks
Guillermo A. Perazzo

2012/3/2 Yaw Anokwa yan...@gmail.com

You cannot enable or disable options based on previous answers. You
can however write a constraint to prevent a user from continuing
if an
option (or set of options) in a previous question is selected. See
http://opendatakit.org/help/form-design/binding/ for an overview
that
should help you write the logic.

On Thu, Mar 1, 2012 at 20:48, gap1981 gape...@gmail.com wrote:

i have a question where you have to rank your first three
conrcens
about a subject. So you have three select one list questions.
But my
problem is that i have in the second question to block the
selected
option in the first (except selected is "other") and in the
third
question i have to block the selected options in the first two
questions, is that posible?
thanks again.

--
Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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

RTA's app (RTA Survey) support option rankings with appearance. Please take
a look at screen shots and see if they meet what you need.

We allow several cases:

  • Select up to K options (K<= N options)
  • Select exactly K options

https://lh3.googleusercontent.com/-abqv2wdjG7U/VYElD9--RgI/AAAAAAAAEbI/9QMAA27-crw/s1600/Screenshot_2015-06-17-14-39-46.png

https://lh3.googleusercontent.com/-okcVda9vMbg/VYElAWP3xuI/AAAAAAAAEbA/iJtJiXf1oIA/s1600/Screenshot_2015-06-17-14-39-32.png

··· On Tuesday, June 16, 2015 at 8:06:02 PM UTC+7, Lloyd Owen Banwart wrote: > > Sydney, > > You may want to consider using a choice_filter. I've used this for > select_multiple questions, but it should function in a similar method for > select_one questions. > > Example: > > Q1: What kinds of training have you received? [Select all that apply] > (with 7 responses from the Q1_list, last being "Other-Specify) > > Q2: What other kinds of training would you like to receive? [Select all > that apply] (with same 7 responses from the Q1_list, last being > "Other-Specify)). > > > The list_name and name would be like the following (label can be actual > training names): > Q1_list 1 Q1_list 2 Q1_list 3 Q1_list 4 Q1_list 5 Q1_list 6 > Q1_list 7 > > > The choice_filter column for Q2 would contain: "train_cat != > selected-at(${Q2}, 0) and train_cat != selected-at(${Q2},1) and train_cat > != selected-at(${Q2}, 2) and train_cat != selected-at(${Q2}, 3) and > train_cat != selected-at(${Q2}, 4) and train_cat != selected-at(${Q2}, 5) > > > Note the "Other - Specify" response (7) is not identified in the choice > filter, then it will show up in both questions. Also, the train_cat is the > column name on the choices sheet for the choice_filter (this can be named > anything). If you search choice_filter in this forum you will get further > information to set these style questions. up. > > > Good luck. > > > ~Lloyd > > > On Monday, June 15, 2015 at 5:45:00 PM UTC-4, Yaw Anokwa wrote: >> >> Sydney, >> >> Did you try the answers in the thread you responded to? If so, did it >> work? >> >> Yaw >> -- >> Need ODK services? http://nafundi.com provides form design, server >> setup, professional support, and software development for ODK. >> >> On Mon, Jun 15, 2015 at 3:41 PM, Sydney wrote: >> >>> Dear Yaw, >>> >>> I have Ranking Questions like below and I want these to be constrained >>> so that the response to B cant be the response to A and the response to C >>> cannot be the response to A or B. How can I do this? and Secondly Can i >>> have all these three questions on one screen? >>> QA: Priority 1 >>> >>> Healthy-looking pregnant woman.......1 Healthy-looking >>> woman.....................2 Healthy-looking >>> man..........................3 Sick >>> man..........................................4 Sick >>> woman........................................5 Sick pregnant >>> woman..........................6 >>> >>> QB: Priority 2 >>> >>> Healthy-looking pregnant woman.......1Healthy-looking >>> woman.....................2Healthy-looking >>> man..........................3Sick >>> man..........................................4Sick >>> woman........................................5Sick pregnant >>> woman..........................6 >>> >>> QC: Priority 3 >>> >>> Healthy-looking pregnant woman.......1Healthy-looking >>> woman.....................2Healthy-looking >>> man..........................3Sick >>> man..........................................4Sick >>> woman........................................5Sick pregnant >>> woman..........................6 >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> On Tuesday, March 6, 2012 at 5:49:46 PM UTC+2, Yaw Anokwa wrote: >>>> >>>> I haven't tried this, but, you might be able to convert the select to >>>> a string, then compare. So if the strings are not the same, the prompt >>>> (or the constraint) is shown. >>>> >>>> relevant="string(/widgets/question1) != string(/widgets/question2)" >>>> >>>> If that doesn't work, then the only other way I can think of is >>>> enumerating all the possibilities. There's probably a better way, but >>>> try the above for now. >>>> >>>> On Tue, Mar 6, 2012 at 07:21, Guillermo Perazzo wrote: >>>> > i meant if question 1=c question 2 cannot be 'c', and if question 2=d >>>> > question 3 cannot be "d". >>>> > So the constraint must be changing depending of what you answer on >>>> previous >>>> > question. >>>> > Something like "Answer to question 2 must be defierent to answer to >>>> question >>>> > 1" >>>> > Thans yaw >>>> > >>>> > Guillermo A. Perazzo >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > 2012/3/6 Yaw Anokwa >>>> >> >>>> >> Hey Guillermo, >>>> >> >>>> >> I don't know what you mean by dynamic, but let's say question1=c and >>>> >> question2=d are not a valid combination. You could put a constraint >>>> on >>>> >> question2 like this. >>>> >> >>>> >> constraint="not(selected(/widgets/question1, 'c') and >>>> >> selected(/widgets/., 'd')) >>>> >> >>>> >> Yaw >>>> >> >>>> >> On Fri, Mar 2, 2012 at 02:28, Guillermo Perazzo wrote: >>>> >> > i asumu you are talking about the "not(selected(/widgets/select1, >>>> >> > 'c'))" constraint, but i didnt know how i make the constraint >>>> dynamic. >>>> >> > The other problem is i have a "other" field that doesnt have to >>>> meet the >>>> >> > constraint. >>>> >> > thanks >>>> >> > Guillermo A. Perazzo >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > 2012/3/2 Yaw Anokwa >>>> >> >> >>>> >> >> You cannot enable or disable options based on previous answers. >>>> You >>>> >> >> can however write a constraint to prevent a user from continuing >>>> if an >>>> >> >> option (or set of options) in a previous question is selected. See >>>> >> >> http://opendatakit.org/help/form-design/binding/ for an overview >>>> that >>>> >> >> should help you write the logic. >>>> >> >> >>>> >> >> On Thu, Mar 1, 2012 at 20:48, gap1981 wrote: >>>> >> >> > i have a question where you have to rank your first three >>>> conrcens >>>> >> >> > about a subject. So you have three select one list questions. >>>> But my >>>> >> >> > problem is that i have in the second question to block the >>>> selected >>>> >> >> > option in the first (except selected is "other") and in the >>>> third >>>> >> >> > question i have to block the selected options in the first two >>>> >> >> > questions, is that posible? >>>> >> >> > thanks again. >>>> >> >> > >>>> >> >> > -- >>>> >> >> > Post: opend...@googlegroups.com >>>> >> >> > Unsubscribe: opendatakit...@googlegroups.com >>>> >> >> > Options: http://groups.google.com/group/opendatakit?hl=en >>>> >> >> >>>> >> >> -- >>>> >> >> Post: opend...@googlegroups.com >>>> >> >> Unsubscribe: opendatakit...@googlegroups.com >>>> >> >> Options: http://groups.google.com/group/opendatakit?hl=en >>>> >> > >>>> >> > >>>> >> > -- >>>> >> > Post: opend...@googlegroups.com >>>> >> > Unsubscribe: opendatakit...@googlegroups.com >>>> >> > Options: http://groups.google.com/group/opendatakit?hl=en >>>> >> >>>> >> -- >>>> >> Post: opend...@googlegroups.com >>>> >> Unsubscribe: opendatakit...@googlegroups.com >>>> >> Options: http://groups.google.com/group/opendatakit?hl=en >>>> > >>>> > >>>> > -- >>>> > Post: opend...@googlegroups.com >>>> > Unsubscribe: opendatakit...@googlegroups.com >>>> > Options: http://groups.google.com/group/opendatakit?hl=en >>>> >>>> -- >>> -- >>> Post: opend...@googlegroups.com >>> Unsubscribe: opendatakit...@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...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >>
1 Like

https://getodk-a3b1.kxcdn.com/uploads/default/original/2X/a/aab48b0ce2d23afee2a07924d8bca7430745aa10.xlsx
As above form we are using select_one type, but can we use select_multiple? if yes, then how?

can we use select_multiple? if yes, then how?

can you please share any example of this type of form.?

See here for a new option in the Collect Beta --> ODK Collect v1.16 Beta

1 Like