I am using the repeat group feature and developing the form using excel. I have a question asking which degrees a person has completed after which questions relevant to each degree follow. I don’t want these questions to show in case “Others” or “None” are selected?
I was adding a simple code in the relevant column of the xlsform stating not(${Degree}=“Others”). It works as long as I only select Others. If I select, for example, Bachelors and also Others, then the repeat group starts to show for Bachelors (as it should) and Others (as it should not).
Hi @stephanealoo thanks for your reply. No actually, I just want to restrict a repeat group to not appear for one particular option (for example “Others”). I still want the repeat group to appear for all other options selected.
Normally, I would add it in the “relevant” column. But it doesn’t seem to be working here. I am attaching this image for reference:
Thank you for your response! I tried doing this, but if I selected 3 degrees, it only shows the repeat group for 1. I want it to shoe for all the degrees, except other.
Attaching what I did for reference:
Yes sure. You’ll note that I did -1 instead of -0 in the code you shared. So essentially used
if(selected(${UK_Degree},‘other’),(count-selected(${UK_Degree})-1),(count-selected(${UK_Degree})))
Uploading here:
hey @Kal_Lam,
I want to ask you something, I’ve tried the colors example on the android kobo collect app
and it opens a loop if the first option was selected is other with just one option and if other selected alone also the loop will open for it,
could you please tell me if there is a solution for that on the kobo collect app.