I have an Kobo xlsx form which contains a repeat group based on count of options that a previous multiple-choice question takes, but I am unable to put none in this question because the repeat group runs for the none option as well. is there any way to introduce this none option which does not take any data?
Hello!
To introduce a “none” option in your Kobo xlsx form without triggering the repeat group, add “None” as an option in the multiple-choice question. Then, use the relevant column to control the visibility of the repeat group choice advantages by setting a condition that excludes the “None” option, like not(selected(${Q1},‘None’)). This ensures the repeat group doesn’t appear when “None” is selected.
Hi Raymond,
Thanks for the reply. I am attaching a self designed form wherein i used a similar logic to create this loop. May i request any and all of you to go through the form, and point out if there are any discrepancies in it. The symptoms were that i used to change and deploy the form and the form worked fine. Yet, after some time the character of the form changed, in that the options changed by itself and the form would require changes and deployment again. Kindly suggest where i went wrong. Thank you for your time guys.
You can modify your repeat group to exclude the “None” option by adjusting the repeat count. Use a relevant condition or calculate the repeat count dynamically, ensuring it excludes “None.” One approach is to create a calculated field that counts only selected options excluding “None”, then reference this field for the repeat count.
Thanks @Scarlet . Did something similar, (may please visit the sheet attached as link; also attaching a screenshot). Counted the number of selected options in the Multiple options question just before the repeat group. Then used “jr:” and repeated for number of times the options were selected and subtracted one from it. Also I came across one other solution wherein after counting the number of options selected in the Multiple option questions I entered a relevance where none was excluded from the loop, This method worked well for me too.