Hi Kal,
I have a question on where to allow choice duplicates in my form. I have a 5 question survey with all questions having similar choices. It wont load, citing that I not to allow choice duplicates.
Kindly help
You can find a workaround on a post discussed previously where you should be using the allow_choice_duplicates
:
Hi @smbai ,
Maybe you could try it as outlined in the image shared below:
In the survey tab of your xlsform:
[Image 1]
In the choices tab of your xlsform:
[Image 2]
In the settings tab of your xlsform:
[Image 3]
Data entry screen as seen in Enketo:
[Image 4]
Note: Here the labels are not shown. This should be a bug in Enketo. However if you try the same in KoBoCollect android app it works smoothly and you are too able to see the label.
Data entry screen as seen in KoBoCollect android app…
Thank you. I will apply that and see the results.
1 Like
Also please feel free to have a look at the post discussed previously (it should help you understand the basic concept of allow_choice_duplicates
):
Hi @maggib ,
I found the duplicate that i have highlighted with yellow and marked the font with red within list_name lf3sx85 whose name prefer_not_to_answer is seen repeated twice within list_name lf3sx85. For your ease check row number 89 and 93 under choices tab.
[Image 1]
The principle behind this is that each list_name should have unique code under it’s associated name.
e.g. this is not allowed …
list_name
name
test
a
test
a
test
a
… but this is allowed …
list_name
na…
1 Like
wroos
November 4, 2020, 7:49pm
6
Hello,
Another option might be
Use the same choice list for multiple variables (if choices are the same)
Adapt the overall choice list by choice_filter where choices are specific.
2 Likes
Thank you for the assistance
1 Like