I apologize in advance for my English, it might be a bit rusty... and for
my very long title!
I am discovering CommCare and am really enjoy it so far! Unfortunately, I'm
stuck trying to build my form.
Here is what I want to do (I hope you'll be able to help me out with these
issues):
1. There is a first question, displaying a list of names ( Names_Selection). I used the checkbox function. The user must choose 4
names out of 10.
I need the second question to be displayed only when the user has
selected exactly 4 names.
Here's what I did :
In Logic, I checked the *Required *box
In Logic > Validation Condition, I wrote this: count-selected(Names_Selection)=4
In the next question, in Logic > Validation Condition, I wrote this: count-selected(#form/Names_Selection)=4
Is it correct ? Because when I use the preview mode and start to tick the
checkboxes, there is a wheel that never ends turning and nothing happens...
*2. *Now, in the next question, I would like those 4 previous selected
names (whatever the user chose) to be displayed. And I want the users to
attribute a number (from 1 to 4) in order to rate their choices according
to their preference (1 being their favourite, and 4 being the one they like
the less).
And I have no clue how to do it properly...!
Any idea ?
(I feel like John Snow right now... Knowing nothing is exhausting!)
···
On Tue, Dec 27, 2016 at 10:41 AM, LaetitiaV < laetitiavinet.management@gmail.com> wrote:
Hi everyone !
I apologize in advance for my English, it might be a bit rusty... and for
my very long title!
I am discovering CommCare and am really enjoy it so far! Unfortunately,
I'm stuck trying to build my form.
Here is what I want to do (I hope you'll be able to help me out with these
issues):
1. There is a first question, displaying a list of names ( Names_Selection). I used the checkbox function. The user must choose 4
names out of 10.
I need the second question to be displayed only when the user has
selected exactly 4 names.
Here's what I did :
In Logic, I checked the *Required *box
In Logic > Validation Condition, I wrote this: count-selected(Names_Selection)=4
In the next question, in Logic > Validation Condition, I wrote
this: count-selected(#form/Names_Selection)=4
Is it correct ? Because when I use the preview mode and start to tick the
checkboxes, there is a wheel that never ends turning and nothing happens...
*2. *Now, in the next question, I would like those 4 previous selected
names (whatever the user chose) to be displayed. And I want the users to
attribute a number (from 1 to 4) in order to rate their choices according
to their preference (1 being their favourite, and 4 being the one they like
the less).
And I have no clue how to do it properly...!
Any idea ?
(I feel like John Snow right now... Knowing nothing is exhausting!)
I changed *count-selected(Names_Selection)=4 *for *count-selected(.)=4 *as
you told me (thanks for the "." tip by the way ).
Unfortunately, I'm not sure that I am using the select-at function
correctly.
For my second question, I have created a group, in which I added text
questions. It seemed nice in preview.... until I added the select-at
functions!
I thought that by typing the following functions, I would have each
previous selected name displayed in each group-question:
Please take a closer look at the second document I sent in my previous
email - those values will need to be in an tag to evaluate.
Cheers,
Will
···
On Thu, Dec 29, 2016 at 8:15 AM LaetitiaV < laetitiavinet.management@gmail.com> wrote:
Hi Will,
Thanks a lot for your answer!
I changed *count-selected(Names_Selection)=4 *for *count-selected(.)=4 *as
you told me (thanks for the "." tip by the way ).
Unfortunately, I'm not sure that I am using the select-at function
correctly.
For my second question, I have created a group, in which I added text
questions. It seemed nice in preview.... until I added the select-at
functions!
I thought that by typing the following functions, I would have each
previous selected name displayed in each group-question: