I would like to find out how to use skip logic and branch on a multiple
select question.
I am designing a baseline survey question, when someone selects Mobile
Phone on a multiple select question, they should then be asked if they use
SMS and whatsapp services. Is this possible?
Examples, pointers on how to achieve this will be greatly appreciated.
Thanks and Regards
Ronald Munjoma
···
__________________________________________________________
The United Nations Millennium Development Goals
A set of 8 goals, agreed upon by 189 member countries of the UN, that if
achieved would see the greatest improvement to the human condition by 2015.
http://www.un.org/millenniumgoals/
skip logic is implemented with the expression you place in the 'relevant'
column for your prompts and groups.
If that expression evaluates to false, the prompt or group of prompts will
be skipped and not displayed.
An example of this is in the sample XLS form ( downloadable from the
XLSForm page http://opendatakit.org/use/xlsform/ )
Refer to rows 11 and 12. Row 12 will not display if you answered 'no' to
row 11.
For multiple-select questions, you would use the same
selected(${question},'value') predicate to test for the choice being
selected. You can then and or or them together to implement whatever
logic you need. See http://opendatakit.org/help/form-design/binding/ for
more information on what expressions are available.
Mitch
···
On Wed, Sep 25, 2013 at 9:25 AM, ronald munjoma wrote:
Dear All,
I would like to find out how to use skip logic and branch on a multiple
select question.
I am designing a baseline survey question, when someone selects Mobile
Phone on a multiple select question, they should then be asked if they use
SMS and whatsapp services. Is this possible?
Examples, pointers on how to achieve this will be greatly appreciated.
Thanks and Regards
Ronald Munjoma
The United Nations Millennium Development Goals
A set of 8 goals, agreed upon by 189 member countries of the UN, that if
achieved would see the greatest improvement to the human condition by 2015. http://www.un.org/millenniumgoals/
Thank you so much for your assistance, I had some free time today and have
managed to make it work.
One more question, how do I make sure that None, Declined to answer or
another option is not selected in a multiple select question? Which
constraint do I use? For example I have the below question and options and
do not want none to be ticked with the other options;
Q. What family planning method do you use?
Choices/Answers:
None
Condoms
The pill
The injection
IUD
Jadelle no plant
Thanks and Regards
Ronald Munjoma
···
On 25 September 2013 19:15, Mitch Sundt wrote:
selected(${question},'value')
The United Nations Millennium Development Goals
A set of 8 goals, agreed upon by 189 member countries of the UN, that if
achieved would see the greatest improvement to the human condition by 2015. http://www.un.org/millenniumgoals/
You can write expressions using not() , and, or, etc. i.e.,
not( selected( ${question}, 'value') )
would be true if 'value' was not selected by the user when answering
'question'.
See the bindings page for the full list of available operators.
Mitch
···
On Wed, Oct 16, 2013 at 1:41 AM, ronald munjoma wrote:
Hi Mitch,
Thank you so much for your assistance, I had some free time today and have
managed to make it work.
One more question, how do I make sure that None, Declined to answer or
another option is not selected in a multiple select question? Which
constraint do I use? For example I have the below question and options and
do not want none to be ticked with the other options;
Q. What family planning method do you use?
Choices/Answers:
None
Condoms
The pill
The injection
IUD
Jadelle no plant
Thanks and Regards
Ronald Munjoma
On 25 September 2013 19:15, Mitch Sundt mitchellsundt@gmail.com wrote:
selected(${question},'value')
The United Nations Millennium Development Goals
A set of 8 goals, agreed upon by 189 member countries of the UN, that if
achieved would see the greatest improvement to the human condition by 2015. http://www.un.org/millenniumgoals/