I have tried to create dynamic choices for a following question which works well for the preceding being a single select question. But if I make it a multiple select question, which is close to the reality, it does not work as expected. I have attached the xls forms.
Thank you Kal,
It is the stage before specifying “others” that I require a solution for.
To be clearer, the information on ‘use of juveniles’ can only be provided by ‘Hatchery operator’, ‘NGO’, ‘Producer group’ and ‘Others’ so when ‘use of juveniles’ is selected, these are the choices that should appear.
When ‘use of juveniles’ and ‘use of improved seed’ are both selected - being multiselect - ‘input dealers’, ‘hatchery operator’, ‘NGO’, ‘Producer group’ and ‘Others’ should appear as choices and so on.
This recommendation gave me a head-start in resolving my constraint, but I am yet to achieve the desired solution. What complicates this is that the question type for the initiating question is a select_multiple. I have tried using count-selected() and nested if() to resolve this but I am yet to. I even tried the ‘&&’ operator in the nested if(), but nothing. Please see my attached xlsform for clarity. Thanks.
@MohammedTaleb thank you for this great solution! I have updated this as an XLSForm so that the entire community could benefit. Thank you once again for all the support provided to the community @MohammedTaleb