Dear Survey Solutions team
I am looking for a way to check that the answers to a list question are unique. Is there a good way to do this? I have tried:
A validation condition on the list question: ListQuestion.All(x=>x.Item2.Count==1)
Creating a variable on the roster linked to the list question to count the rows with the same @rowname, but could not get it to work.
very good question. I have added an example into the “Public example User questions and common patterns” questionnaire. See the section “Verify uniqueness”.
The syntax that you’ve shown in your post is not correct, because x.Item2 will be string. So Count==1 will not make sense for it.
Best, Sergiy Radyakin
Great, thank you for confirming. I will now close this thread as resolved.
Many thanks Sergiy, works perfectly.