Hi,
I am trying to use the number of options selected in a previous multiple select question as relevant for a following question
I have the following:
count-selected(${income_main}) >=2
I want the question to be relevant only if there is 2 or more multiple select options are chosen.
Thanks in advance,
Jess
So what is the problem? Just use your expression + http://xlsform.org/en/#relevant
When I run the spreadsheet through XLS form online.
I get the following error message
Error: b"ODK Validate Errors:\n>> Something broke the parser. See above for a hint.\nXPath evaluation: cannot handle function 'selected' requires 2 arguments. Only 1 provided.\n\nResult: Invalid"
check example if it works in your case. Used additional condition if multiple select question is non-mandatory.multiple_select.xlsx (14.5 KB)
1 Like
Hi @jess1234
You should firstly add calculation question before relevant one try this EXAMPLE.xlsx (9.3 KB)