Restrict choices already selected from a repeat group

Hi @an_ju,

Have you considered using a choice filter rather than constraints? Here’s something that might work for your situation:

survey

type name label calculation choice_filter
calculate c1 concat(${visit})
begin_repeat visits Visits
calculate c2 substr(${c1}, 0, position(…) - 1)
select_one visits visit Visit not(contains(${c2}, name))
end_repeat

choices

list_name name label
visits 0 Visit 3A
visits 1 Visit 3B
visits 2 Visit 3C

choice-filter-repeat-group.xlsx (6.0 KB)

4 Likes